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