python selenium phantomjs proxy

PhantomJS设置代理:

service_args = [
'--proxy=ip:port',
'--proxy-auth=user:pwd'
'--proxy-type=http',
]
dr = webdriver.PhantomJS(service_args=service_args)

posted on 2017-06-15 17:13  freedomdym  阅读(266)  评论(0编辑  收藏  举报

导航