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)

 

posted @ 2022-08-02 10:25  OTAKU_nicole  阅读(1372)  评论(0编辑  收藏  举报