通过无头浏览器登录并获取cookie
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jyhl 9e10b9e28f fix 5 years ago
README.md init 5 years ago
requirements.dev.txt init 5 years ago
requirements.txt init 5 years ago
selenium_demo.py fix 5 years ago
useragents.txt init 5 years ago

README.md

通过无头浏览器获取cookie

DEMO代码以新浪微博,m.weibo.cn为实例

安装

pip3 install -r requirements.txt

安装chrome并下载对应版本的chrome deriver

下载chrome https://www.google.com/chrome/

下载对应版本 driver https://chromedriver.chromium.org/downloads

运行

   python selenium_demo.py