您现在的位置是: 网站首页> 学习笔记> 爬虫 爬虫

Python+selenium+firefox设置代理IP

2021-01-03 [selenium] [设置代理] 4774人已围观

ip = xxx.xxx.xxx.xxx:xx
proxy = Proxy({
    'proxyType': ProxyType.MANUAL,
    'httpProxy': ip,
    # 'ftpProxy': ip,
    'sslProxy': ip,
    # 'noProxy': '',
})

# 代理IP
fireprofile = FirefoxProfile()
fireprofile.set_proxy(proxy)
driver = webdriver.Firefox(firefox_profile=fireprofile)

文章评论

#2023-11-18 00:24 @ d-change.net:

Currently it seems like BlogEngine is the preferred blogging platform out there right now. (from what I've read) Is that what you are using on your blog?

#2023-11-20 10:26 @ d-change.net:

Thank you for the good writeup. It actually used to be a amusement account it. Glance advanced to far introduced agreeable from you! By the way, how could we keep in touch?

#2023-11-20 22:04 @ https://d-change.net:

Good day! I know this is kinda off topic but I was wondering if you knew where I could get a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having problems finding one? Thanks a lot!

添加评论





本栏推荐

站点信息

  • 建站时间:2021-01-01
  • 网站程序:Django 3.1.2
  • 文章统计:53篇
  • 文章评论:36条
  • 统计数据