claffin / cloudproxy

Hide your scrapers IP behind the cloud. Provision proxy servers across different cloud providers to improve your scraping success.
https://cloudproxy.io/
MIT License
1.4k stars 79 forks source link

Allow provider location change via api #51

Closed qdlmcfresh closed 2 years ago

qdlmcfresh commented 2 years ago

I noticed hetzner giving me the same ips all the time so i added a way to change the location parameter. Maybe thats useful for someone else. Change Provider location via : curl -X 'PATCH' 'http://localhost:8000/providers/$PROVIDER/location?location=$LOCATION' -H 'accept: application/json'

claffin commented 2 years ago

Thanks for your PR @qdlmcfresh and sorry for my late review.

I'm going to refuse this PR as it only changes the location for Hetzner. The config and API I'm trying to make generic across all providers so reluctant to add features for only provider, but I will add it as a new feature in a release now I'm working on this again as it's a good idea.