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

maintain always up-to-date list of proxy servers #6

Open
8 tasks
Tracked by #1
serapath opened this issue Aug 16, 2019 · 0 comments
Open
8 tasks
Tracked by #1

maintain always up-to-date list of proxy servers #6

serapath opened this issue Aug 16, 2019 · 0 comments

Comments

@serapath
Copy link
Member

@todo

  • create a get-proxy-server.js with the logic to fetch proxy server IP's
  • add http api to the https://<get-proxy-server.js>:<port>/proxylist
    • on request, read proxylist.json and check timestamp
      • if timestamp is old, fetch new proxies first and save them in proxylist.json with new timestamp
      • if timestamp is good, return proxylist.json content
  • when fetching new <proxy ip>s:
    • delete old proxylist.json and create new proxylist.json with new timestamp
    • for each <proxy ip> it gets, try to make a request to e.g. google.com and
      • if it succeeds store <proxy ip> in proxylist.json
      • if it fails, ignore and throw away the <proxy ip>
  • make sure it get's started and restarted whenever the digital ocean server starts or restarts

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

No branches or pull requests

1 participant