ip自行查找,写入proxies变量传入get参数中,具体如下代码 import requests url = "www.XXX.com" proxies = { "https": "https://{ip}:端口" } resp = requests.get(url, proxies=proxies) print(resp.text)
ip自行查找,写入proxies变量传入get参数中,具体如下代码
import requestsurl = "www.XXX.com"
proxies = {
"https": "https://{ip}:端口"
}
resp = requests.get(url, proxies=proxies)
print(resp.text)