我使用PhantomJS时会注释HTML

时间:2016-02-16 09:35:18

标签: python html selenium web-scraping phantomjs

我试图从一个网页上获取一些数据。问题是当我使用HTML或任何真正的浏览器查看Firefox代码时,我可以清楚地看到"路径"达到我想要的价值。

这条"路径"使用Selenium - PhantomJS XPath无效。我在搜索的代码被评论。

您可以在此处查看Firefox代码:

enter image description here

在这里 - PhantomJS - driver.page_source

enter image description here

您知道如何在代码中获取85吗?

0 个答案:

没有答案