-
Notifications
You must be signed in to change notification settings - Fork 143
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
Question: Passing endpoint as a string for curl_cffi.requests #75
Comments
Hi @ericy1000, thanks for using the project. I'll take a longer look at this later - but yes, visiting the ProxyStage URL is enough to work. When you are testing api64.ipify.org, you will only see rotated IPs if the ApiGateway instance you created was explicitly for "https://api64.ipify.org" - each ProxyStage URL is scoped to a single domain. Hope this helps |
Thank you! Yes, I create the API gateway for specific domains that I'm trying to scrape (or in ipify.org's case, test library functionality). |
Hi @ericy1000, visiting the ProxyStage URLs directly should definitely rotate IPs - I have just verified this directly with webhook.site. Please can you show how you are initialising the ApiGateway and to get the URL? |
Updating as I now realize why the API endpoint works fine when I call it with requests (aka random IP) vs. calling it in a website (aka returning my IP) Still trying to figure out how to utilize this library as part of curl_cffi.requests, which does not accept a HTTPAdapter input. |
I've been trying to figure this out for hours and am hitting a brick wall.
Wondering if you have an idea on a solution?
Situation:
Question: How can I get a URL that can be passed to "curl_cffi.requests" from the APIGateway object?
My Findings so far:
Thank you for any help or insight you can provide (even if its simply that you can't get a proxy_url from the APIGateway and I need to rewrite the scraping library to use requests)
Love your library; hugely powerful and simplifies things immensely.
The text was updated successfully, but these errors were encountered: