-
Notifications
You must be signed in to change notification settings - Fork 111
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
FoursquareException: you are using automation tools to browse the website #88
Comments
I'm guessing that Foursquare either changed an API endpoint or they made a targeted decision to restrict access rights of your keys due to your usage patterns (TOS violation). If it's the later, that's between you and Foursquare. If it's the former, could you check that the developer "explore" interface still works for this endpoint? |
I have experienced a similar problem with the Foursquare APIs by using the requests library directly. |
I am getting this too all of a sudden. What's strange is the version I have in PHP is working fine, just the Python returns this long error response. @diegmonti How did you set the user-agent? Edit: Got it working using |
I set the user-agent like the latest version of Firefox on Ubuntu, but I think that any widespread browser will work. |
Yikes. Seems like a server issue on Foursquare's side of things... Likely an overzealous spam detection heuristic or ML model. I'm not currently comfortable spoofing a legit browser as default functionality. Feels shady. At the end of the day, Foursquare is in charge of what sort of API traffic they want to receive. Hopefully @diegmonti's suggestion should get folks through until Foursquare fixes things on their end. Thanks for the help @diegmonti! I'll keep this issue open for others to find until it gets resolved by Foursquare. |
Anybody know anybody at @foursquare? My contacts there have long since departed. Also, what's the repro? Just this endpoint or others? |
I have checked again and the filter based on the user-agent seems now gone. |
I am able to authenticate in my app again as well. |
Does anyone knows how to solve this issue? I'm getting this error even though I'm only using the API. The foursquare dashboard doesn't show any error. Note that I don't even scrape data, I just forward user requests injecting our client id/secret. Strangely if I copy paste my server generated URL in my browser or postman it does work. Using a user agent doesn't make any difference in my case. |
Starting yesterday, I can no longer retrieve Foursquare data with this library.
client.users.checkins()
is raising aFoursquareException
, which appears to contain HTML instead of a JSON response:with the relevant part of the message being:
Is there anything this library can do to mitigate this?
The text was updated successfully, but these errors were encountered: