jhao104 / proxy_pool

Python ProxyPool for web spider
https://jhao104.github.io/proxy_pool/
MIT License
21.38k stars 5.16k forks source link

如何只使用支持https的代理? #723

Open ruarua6666 opened 1 year ago

ruarua6666 commented 1 year ago

我的情况是return requests.get("http://127.0.0.1:5000/get")是没问题的,可以正常获得ip,但是ip不支持https。 我看md说可以加上?type=https, return requests.get("http://127.0.0.1:5000/get/?type=https"),但是返回的是{"code":0,"src":"no proxy"},有大佬知道怎么解决吗?

jhao104 commented 1 year ago

意思就是没有支持https的代理呗

LEIRONGHUA commented 1 year ago

意思就是没有支持https的代理呗

对,就是在代理源中,还没有爬取到支持https的代理IP。 或者是拉取的https代理ip在“代理验证目标网站”HTTPS_URL的验证不可用

ruarua6666 commented 1 year ago

有没有办法爬到https的代理?付费的有吗?

LEIRONGHUA commented 1 year ago

image

jhao104 commented 1 year ago

有没有办法爬到https的代理?付费的有吗?

楼上正解,介绍页推荐了,便宜好用的池子