12 lines
271 B
Python
12 lines
271 B
Python
import requests
|
|
|
|
# 47.92.113.71:80 #ip:端口
|
|
proxies = {
|
|
# "http":"",
|
|
"https": "https://47.92.113.71:80"
|
|
# 格式http类型:”http类型+代理“
|
|
}
|
|
r = requests.get("https://www.baidu.com", proxies=proxies)
|
|
r.encoding = r.apparent_encoding
|
|
print(r.text)
|