使用蜻蜓代理后参照说明书设置为什么返回的是5个相同的地址

来源:3-21 设置爬虫代理

破邪返瞳

2022-06-27 14:40:38

import requests

targetUrl = "http://httpbin.org/ip"

# 代理服务器
proxyHost = "dyn.horocn.com"
proxyPort = "50000"

# 代理隧道验证信息
proxyUser = "VOC61736768513787675"
proxyPass = "JSiLzDmXxoFFFFGf"
proxy={
    "host": 'proxyHost',
    "port": 'proxyPort',
    "user": 'proxyUser',
    "pass": 'proxyPass',
}

url='http://httpbin.org/ip'
for i in range(5):
    response = requests.get(url=url,proxies=proxy)
    print(response.text)
           

https://img.mukewang.com/climg/62b950c0094970a604630730.jpg

写回答

1回答

好帮手慕小猿

2022-06-27

同学,你好!和同学使用的代理有关,同学可以咨询蜻蜓代理的客服,隧道代理请求时更新ip地址的规则。祝学习愉快~

0

0 学习 · 1672 问题

查看课程