付费代理使用

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-31 03:08   16   0

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

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP