ProxyBroker
ProxyBroker copied to clipboard
Is there possible way to keep getting proxies among weeks?
So, the current Broker.serve
code seems to generate proxies once from all the providers.
I mean if we run the server for a long time, say a week, as you know those proxies' lifetime is rather short. The majority or even whole of them will be dead a week later.
This means we can only serve
by an uncertain amount of time, maybe one day, or another day.
So, when the Broker._proxies
, ProxyPool._pool
is both empty, the server is dead.
Any suggestion to add some code to prevent this? Actually, the project structure is a bit hard to get well understood in a short time. Maybe you @constverum , as the author, can supply some hint?
You can loop the launch of the script at system level if you are using cli versioversf you used a script just call the whole thing when dies.
Omg autocorrect doing nasty things.