赞
踩
from selenium import webdriver
import requests
from lxml import etree
import time
import os
#使用selenium通过扫码模拟登陆知乎,获取cookies
post_url = 'https://www.zhihu.com/signin?next=%2F'
driver = webdriver.Chrome()
driver.get(post_url)
time.sleep(10)
post_cookies = driver.get_cookies
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。