1. 首页
  2. 编程语言
  3. Python
  4. 02-使用私密代理访问httpbin示例.py

02-使用私密代理访问httpbin示例.py

上传者: 2023-06-28 20:17:45上传 PY文件 311B 热度 9次

'''02_使用私密代理访问httpbin示例.py''' import requests url = "http://httpbin.org/get" headers = {"User-Agent":"Mozilla/5.0"} proxies = {"http":"http://309435365:szayclhp@123.206.119.108:16817"} res = requests.get(url,proxies=proxies,headers=headers) res.encoding = "utf-8" print(res.text) '''02_使用私密代理访问httpbin示例.py''' import requests url = "http://httpbin.org/get" headers = {"User-Agent":"Mozilla/5.0"} proxies = {"http":"http://309435365:szayclhp@123.206.119.108:16817"} res = requests.get(url,proxies=proxies,heade

用户评论