付费代理使用

了解更多关注微信公众号“木下学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)

 

蘑菇代理

http://www.moguproxy.com/

 

九州网

https://www.jiuzhousoft.com/

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)

 

极光代理

http://www.jiguangdaili.com/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值