美文网首页工作生活
selenium+phantomjs自动化爬取

selenium+phantomjs自动化爬取

作者: Richalll | 来源:发表于2019-07-08 16:25 被阅读0次

    1.pip install selenium

    2.下载phantomjs-2.1.1-windows

    3.解压phantomjs后配置文件夹的bin文件夹的环境变量

    4.下载Chromedriver32版本的exe文件放到Python安装目录下

    5.编写代码测验

    from seleniumimport webdriver

    browser = webdriver.Chrome()

    browser.get('http://www.baidu.com/')

    相关文章

      网友评论

        本文标题:selenium+phantomjs自动化爬取

        本文链接:https://www.haomeiwen.com/subject/syezcctx.html