1.获取ip或者外网ip,以及验证高匿代理
2.代理设置
import requests
proxies = {
'http':'http://127.0.0.1:1080'
'https':'http://127.0.0.1:1080'
}
r = requests.get("http://www.baidu.com",proxies=proxies,timeout=2)
复制代码
import requests
proxies = {
'http':'http://127.0.0.1:1080'
'https':'http://127.0.0.1:1080'
}
r = requests.get("http://www.baidu.com",proxies=proxies,timeout=2)
复制代码