了解更多关注微信公众号“木下学Python”吧~
阿布云
登陆网址:https://center.abuyun.com/login
python 代码接入格式
import requests
# 要访问的目标页面
targetUrl = "http://test.abuyun.com"
#targetUrl = "http://proxy.abuyun.com/switch-ip"
#targetUrl = "http://proxy.abuyun.com/current-ip"
# 代理服务器
proxyHost = "http-dyn.abuyun.com"
proxyPort = "9020"
# 代理隧道验证信息
proxyUser = 'H4046I854R9UYJBD'
proxyPass = 'C9F689A6B1433FFB'
proxyMeta = "http://%(user)s:%(pass)s@%(host)s:%(port)s" % {
"host" : proxyHost,
"port" : proxyPort,
"user" : proxyUser,
"pass" : proxyPass,
}
proxies = {
"http" : proxyMeta,
"https" : proxyMeta,
}
resp = requests.get(targetUrl, proxies=proxies)
print (resp.status_code)
print (resp.text)
蘑菇代理
九州网
python 提取 json 你的ip
import requests
import json
url = 'https://vip.jiuzhousoft.com/v1/getcrawler?key=7697jT8n2LhROiJcXIDFWrSKQgbVhyIi3S57VY8RxnX_7QXUWg&einum=5&pro=socks5&fm=json&spt=1&attr=1,2'
respones = requests.get(url)
dic = json.loads(respones.text)
ipList = []
for i in dic.get('data'):
ipList.append(i['ip'])
print(ipList)
极光代理