主页
Python
Python Requests get() 方法
demo_requests_get_proxies
运行 ❯
×
更改方向
保存代码
更改主题
import requests url = 'https://freew3c.com/python/demopage.php' #find a free proxy address and send your request via that proxy: x = requests.get(url, proxies = { "https" : "https://1.1.0.1:80"}) #'demopage.php' will print the ip address of the proxy instead of your ip: print(x.text)
C:\Users\My Name>python demo_requests_get_proxies.py
Ip address: 1.1.0.1