python 用cookie模拟登陆网站
import re
import requests
def get_info(url):
headers = {
"Cookie" :"************************"//通过手工登录后浏览器抓取web的http请求获得
}
html = requests.get(url,headers =headers,verify=False)
print(html.text)
if __name__ == "__main__":
get_info("********************")//网址

浙公网安备 33010602011771号