0

我在 Scrapy 中使用 roatating_proxies 中间件,我想在我的所有代理中使用一个 url。问题是有一个伪密码和密码保护。

“setting.py”文件中的代码:

def getProxyList():
    resp = requests.get('http://api.buyproxies.org/etc')
    return resp.text.split()

ROTATING_PROXY_LIST = getProxyList()

网址:

176.0.0.0:user:pswd
192.0.0.0:12345:user:pswd
45.0.0.0:12345:user:pswd
196.0.0.0:12345:user:pswd
151.0.0.0:12345:user:pswd

错误:

raise ValueError(message) from None
ValueError: Port could not be cast to integer value as '12345:user:pswd'
4

0 回答 0