import requests url = "https://www.baidu.com" headers = { "User-Agent": "Mozilla/5.0 (X11; Linux mips64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36", "Cookie": "JSESSIONID=2F6A094FD1798A4E17A8E903986B26EF" } r = requests.post(url,headers=headers,verify=False) print(r.text) ------------------------------ python3 測(cè)試通過(guò) |
|