Skip to content

Instantly share code, notes, and snippets.

@117503445
Created April 21, 2020 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 117503445/44f52e689fdc838e57ec06d135ef6754 to your computer and use it in GitHub Desktop.
Save 117503445/44f52e689fdc838e57ec06d135ef6754 to your computer and use it in GitHub Desktop.
Python selenium 控制已打开的 Chrome
  1. 使用 chrome.exe --remote-debugging-port=9222 打开浏览器

  2. Python 中添加 chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")

@117503445
Copy link
Author

还没有经过实验,可能可以绕过一些反爬虫验证措施

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment