测试ip代理

import requests

url = 'http://httpbin.org/ip'
response1 = requests.get(url=url)
print(response1.text)
proxy = {'http':'114.230.28.202:4582'}
response2 = requests.get('http://httpbin.org/ip',proxies=proxy)
print(response2.text)

  

猜你喜欢

转载自www.cnblogs.com/qiaoer1993/p/10967351.html
今日推荐