首先我们检测ip是否可用:
1.对于免费代理的检测
#免费代理或不用密码的代理 url = \'\' proxy = \'127.0.0.0:8000\' proxies = { \'http\': \'\' + proxy, \'https\': \'https://\' + proxy, } response = requests.get(url, proxies=proxies, verify=False) print(response.text)
首先我们检测ip是否可用:
1.对于免费代理的检测
#免费代理或不用密码的代理 url = \'\' proxy = \'127.0.0.0:8000\' proxies = { \'http\': \'\' + proxy, \'https\': \'https://\' + proxy, } response = requests.get(url, proxies=proxies, verify=False) print(response.text)
内容版权声明:除非注明,否则皆为本站原创文章。