SpiderClub / haipproxy

:sparkling_heart: High available distributed ip proxy pool, powerd by Scrapy and Redis
https://spiderclub.github.io/haipproxy/
MIT License
5.43k stars 914 forks source link

get_available_proxies 方法中有个判断语句好像有问题 #74

Closed whg517 closed 5 years ago

whg517 commented 5 years ago

https://github.com/SpiderClub/haipproxy/blob/9e11cdeb71a209f0ec3db05c67351de42acbd7b8/haipproxy/client/core.py#L33 https://github.com/SpiderClub/haipproxy/blob/9e11cdeb71a209f0ec3db05c67351de42acbd7b8/haipproxy/client/core.py#L34

https://github.com/SpiderClub/haipproxy/blob/9e11cdeb71a209f0ec3db05c67351de42acbd7b8/haipproxy/client/core.py#L35 https://github.com/SpiderClub/haipproxy/blob/9e11cdeb71a209f0ec3db05c67351de42acbd7b8/haipproxy/client/core.py#L36

这个判断条件都一样,但是条件内的语句并并不一样。

ResolveWang commented 5 years ago

不是一样的,有个校验条件弱化的过程。先是考察池子里的IP是不是满足条件,不满足就弱化到只考虑ttlspeed,如果这两个交集不满足条件,那么就考虑ttlscored的并集

whg517 commented 5 years ago

get it