python Selenium+phantomjs 小技巧

Posted shaosks

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python Selenium+phantomjs 小技巧相关的知识,希望对你有一定的参考价值。

  1、元素模糊定位

    如抓取下面列表:

    技术分享图片

    elements = doc("li[id^=‘result_‘]")

 

以上是关于python Selenium+phantomjs 小技巧的主要内容,如果未能解决你的问题,请参考以下文章