通过无头浏览器登录并获取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.

375 B

通过无头浏览器获取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