proxy-lists
proxy-lists copied to clipboard
How to get a certain amount?
how can i get only 3 proxies ?
@group2tts Seems as though every source is pulled from differently, but what you can do is a for loop to add only the first three to an array, and reference that array. :)
It would be nice to limit this in the method to avoid many unnecessary requests.
A stop
method would already suffice, it can be called later when
the required amount of working proxies have been determined.
I use proxy-verifier
as recommended in README and when enough proxies are OK,
the proxy lsit in background should be stopped if it is still fetching more.
@strarsis How can u stop
? Can u share source
@strarsis How can u
stop
? Can u share source
Well, I don't have a stop method implemented, I propose for one being implemented.
There is a loop running and a condition could be added in the loop that checks for a property, e.g. stopRequested and stops looping, and a stop method would set it to true.