如何判断代理IP是否有效

似水流年梦 2020-05-12

import requestsurl = ‘http://icanhazip.com‘proxy = {‘http‘:‘60.179.200.53:3000‘}proxy = {‘http‘:‘125.123.155.156:3000‘}proxy = {‘http‘:‘111.222.141.127:8118‘} #广东深圳proxy = {‘http‘:‘117.69.170.45:4216‘}proxy = {‘http‘:‘222.88.158.34:8060‘} #河南安阳proxy = {‘http‘:‘113.119.47.199:8118‘} #广东广州resp = requests.get(url,proxies=proxy).textprint(resp)

相关推荐

guoscy / 0评论 2011-03-09

fengziboy / 0评论 2012-02-11