proxy-lists icon indicating copy to clipboard operation
proxy-lists copied to clipboard

How to get a certain amount?

Open group2tts opened this issue 6 years ago • 4 comments

how can i get only 3 proxies ?

group2tts avatar Oct 27 '18 13:10 group2tts

@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. :)

ridafkih avatar Jan 19 '19 15:01 ridafkih

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 avatar Jun 27 '19 14:06 strarsis

@strarsis How can u stop? Can u share source

omerfdmrl avatar Oct 05 '22 09:10 omerfdmrl

@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.

strarsis avatar Oct 05 '22 12:10 strarsis