selenium添加phantomjs的js API接口
from selenium import webdrivercap = webdriver.DesiredCapabilities.PHANTOMJS.copy()
# 修改driver配置文件,可选,关闭图片,打开磁盘缓存,设置User-Agent
cap["phantomjs.page.settings.loadImages"] = False
cap["phantomjs.page.setti
原创
2017-10-11 10:17:31 ·
811 阅读 ·
0 评论