Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get a certain amount? #89

Open
group2tts opened this issue Oct 27, 2018 · 4 comments
Open

How to get a certain amount? #89

group2tts opened this issue Oct 27, 2018 · 4 comments

Comments

@group2tts
Copy link

group2tts commented Oct 27, 2018

how can i get only 3 proxies ?

@ridafkih
Copy link

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

@strarsis
Copy link

strarsis commented Jun 27, 2019

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.

@omerfdmrl
Copy link

@strarsis How can u stop? Can u share source

@strarsis
Copy link

strarsis commented Oct 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants