推荐学习书目
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
xiaozaiziwyt
V2EX  ›  Python

爬虫时用 chromedriver 模拟一直提示 cannot connect to chrome at 127.0.0.1:9222

  •  
  •   xiaozaiziwyt · Mar 20, 2019 · 6256 views
    This topic created in 2639 days ago, the information mentioned may be changed or developed.

    源码 selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:9222

    通过 chrome.exe --remote-debugging-post=9222 能启动,但是进不了 http://127.0.0.1:9222/和 http://127.0.0.1:9222/json ……

    网上找了也没有什么实际解决办法,想问问 v 友们有没有什么办法……

    7 replies    2021-04-14 12:31:47 +08:00
    yichinzhu
        1
    yichinzhu  
       Mar 20, 2019 via Android
    port。。。
    masker
        2
    masker  
       Mar 21, 2019 via Android
    。。。动手解决问题的能力越来越差 。。。
    ClutchBear
        3
    ClutchBear  
       Mar 21, 2019
    chromedriver 跟 chrome 有版本对应关系的,
    你看看是不是一致.
    allgy
        4
    allgy  
       Mar 21, 2019
    手动写爬虫吧,遇到问题好解决
    Deathminip
        5
    Deathminip  
       Mar 21, 2019
    不懂 chromedriver,不过我看了一天 puppeteer 的中文文档,写了个爬虫,目前本地和服务器都稳定跑着,自动切换代理 IP 什么的,都没问题
    yxlbeyond
        6
    yxlbeyond  
       Mar 21, 2019
    看看 chrome 版本和 chromedriver 版本是否对应
    yuanbo95
        7
    yuanbo95  
       Apr 14, 2021
    可能是因为在 chrome 浏览器未关闭的情况下,就执行 chrome.exe --remote-debugging-port=9222 这个命令,要去任务管理器里查看是否有 chrome 进程的留存
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3119 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 509ms · UTC 13:56 · PVG 21:56 · LAX 06:56 · JFK 09:56
    ♥ Do have faith in what you're doing.