import requests
try:
requests.get('http://www.baidu.com', proxies={'http': 'http://101.96.11.73:8080'})
except:
print('connect failed')
else:
print('success')
Scrapy:测试代理ip
最新推荐文章于 2023-06-25 22:09:22 发布
import requests
try:
requests.get('http://www.baidu.com', proxies={'http': 'http://101.96.11.73:8080'})
except:
print('connect failed')
else:
print('success')