python requests设置代理
import requests url = "https://***" payload={} proxies = {"http": "http://127.0.0.1:8080", "https": "http://127.0.0.1:8080"} headers = { 'Cookie': 'Cookie' } response = requests.request("GET", url, headers=headers, data=payload, proxies=proxies, verify=False) print(response.text)
本文来自博客园,作者:OTAKU_nicole,转载请注明原文链接:https://www.cnblogs.com/nicole-zhang/p/16542887.html