content样式内容如何抓取?

某网站数据是写在css中的content样式,class名是根据js动态生成出来的。
例如:

<span class="aa_bb_asdasfasd">
  ::before
</span>

<style>
.aa_bb_asdasfasd::before{
  content: "99.99";
}
</style>

求问有什么办法或者软件可以抓到99.99这个数据么?

备注:我的环境是laravel+crawler,方法不限于此

阅读 2.4k
1 个回答

getComputedStyle(HtmlElement, '::before').content;

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题