constverum / ProxyBroker

Proxy [Finder | Checker | Server]. HTTP(S) & SOCKS :performing_arts:
http://proxybroker.readthedocs.io
Apache License 2.0
3.83k stars 1.09k forks source link

ProxyBroker 'freeze' (don't exit) if no limit specified #75

Open datphyr opened 6 years ago

datphyr commented 6 years ago

I'm developing some application that constantly fetching API of specified sites. This sites have throttling on this API, but I need to fetch it really frequent. I found your ProxyBroker and this stuff is really great, but it's lacking some functionality in my particular case. I need mass of proxies to make, in ideal, every API call from different address. I made some experiments with ProxyBroker and here is what I found:

Looks like ProxyBroker have internal list of sites where it grabbing proxies, and printing every found and tested proxy to stdout, when it's exhausted all this sites - it simply stops and not exits. Can you add functionality to 'start again after all sites parsed'? Or simply exit.

datphyr commented 6 years ago

Maybe I can even call it a real bug - 'ProxyBroker don't exit if no limit specified'. How to reproduce: 'proxybroker find --types HTTP HTTPS SOCKS4 SOCKS5 CONNECT:80 CONNECT:25' and wait :) Expected result: proxybroker exit Actual result: proxybroker found proxies and freeze

datphyr commented 6 years ago

Making more tests right now and looks like it don't appear if 'short type list' specified (like HTTP only).

datphyr commented 6 years ago

Nope ... I can confirm it happens all the time for me. Need some 'versions' report? I'm using ProxyBroker from pip3.

akuzia commented 6 years ago

Proxylist_me went bad, just comment it in providers list. Fixed for me

gbballpack commented 6 years ago

I can confirm the same issue. If I use the grabber feature and just try and pull a list of proxies without setting a limit, proxybroker makes a list but never exists or closes itself out. i.e., "proxybroker grab --outfile ./proxies.txt" Since proxybroker usually grabs around 9,000 proxies total, my work around has been to set of limit of 8500 results. i.e., "proxybroker grab --limit 8500 --outfile ./proxies.txt"