requests 代理设置

import requests

proxies = {
    "http": 'http://111.72.137.232:4251'}

r = requests.get('http://httpbin.org/ip', proxies=proxies)
print(r.text)
posted @ 2021-01-05 21:54  旁人怎会懂  阅读(219)  评论(0)    收藏  举报