python


14、安装Chrome webdriver

<pre><code>pip install selenium</code></pre> <p>在chrome中输入<code>chrome://version/</code>查看版本信息 下载webdriver。并配置环境变量 <a href="http://npm.taobao.org/mirrors/chromedriver/">http://npm.taobao.org/mirrors/chromedriver/</a> webdriver镜像地址,按版本对应下载</p> <pre><code>(py36) C:\Users\zcr&gt;python Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 12:30:02) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; from selenium import webdriver &gt;&gt;&gt; driver = webdriver.Chrome() DevTools listening on ws://127.0.0.1:58930/devtools/browser/2737c68a-7018-42ab-951b-14e23d958f3a &gt;&gt;&gt; </code></pre> <p>2、使用phantomjs 下载phantomjs并配置环境变量 <a href="http://phantomjs.org/download.html">http://phantomjs.org/download.html</a></p>

页面列表

ITEM_HTML