推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
brucecobb
V2EX  ›  Python

selenium 怎样在不关闭的情况下更换代理 IP?

  •  
  •   brucecobb · May 23, 2018 · 5064 views
    This topic created in 2922 days ago, the information mentioned may be changed or developed.
    (也可以这么讲:在不关闭的情况下更换 option 里面的 IP,更换 UA ? )
    5 replies    2018-08-14 16:40:39 +08:00
    qsnow6
        1
    qsnow6  
       May 23, 2018
    更换 代理不需要重启 driver
    brucecobb
        2
    brucecobb  
    OP
       May 23, 2018
    @qsnow6 感谢您的回复!更换代理是哪个函数呢?如果放进 option 中是需要重新创建的。
    spemoon
        3
    spemoon  
       May 24, 2018
    试试 requests ?
    brucecobb
        4
    brucecobb  
    OP
       May 24, 2018
    @spemoon 感谢您的回复!如果 requests 能拿到就不用 selenium 啦!
    farverfull
        5
    farverfull  
       Aug 14, 2018
    请问楼主解决了吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2846 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 74ms · UTC 06:03 · PVG 14:03 · LAX 23:03 · JFK 02:03
    ♥ Do have faith in what you're doing.