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

"Unable to find guest token" exception on Twitter calls from AWS #79

Closed
arranjdavis opened this issue Sep 24, 2020 · 8 comments
Closed
Labels
bug Something isn't working module:twitter upstream wontfix This will not be worked on

Comments

@arranjdavis
Copy link

arranjdavis commented Sep 24, 2020

I am using a conda environment on a Linux machine (an AWS instance) using Python 3.8.3.

I have installed snscrape using pip3 install git+https://github.com/JustAnotherArchivist/snscrape.git

When I run any call to Twitter from the command line, such as:

snscrape twitter-user textfiles >twitter-@textfiles

I get the snscrape.base.ScraperException: Unable to find guest token exception. I saw that this is similar to issue #64, but it is closed. Sorry, not sure if I should bring this up here or on #64!

Thanks for the help, and all of your work on this!

@JustAnotherArchivist
Copy link
Owner

I've heard this before. It appears that all AWS IPs are blocked on Twitter. This isn't something that I can work around in snscrape I'm afraid.

@JustAnotherArchivist JustAnotherArchivist added bug Something isn't working module:twitter wontfix This will not be worked on labels Sep 24, 2020
@JustAnotherArchivist JustAnotherArchivist changed the title "Unable to find guest token" exception on Twitter calls "Unable to find guest token" exception on Twitter calls from AWS Sep 24, 2020
@arranjdavis
Copy link
Author

Ahh, I see. Thanks for clarifying that! It is really useful to know. Good luck with this project!

@arranjdavis
Copy link
Author

Just to say, I have figured out how to run snscrape from a Google Colab, although you will need to figure out a way to run Python 3.8 on the Colab if you want to use arguments like --jsonl.

This worked for me (see comments on the accepted answer, as well).

@T-Zahil
Copy link

T-Zahil commented Oct 1, 2020

Same issue but with Heroku :/

@JustAnotherArchivist
Copy link
Owner

@T-Zahil Heroku runs on top of AWS, so that makes sense.

@Hamma111
Copy link

I get the snscrape.base.ScraperException: Unable to find guest token exception. I saw that this is similar to issue #64, but it is closed. Sorry, not sure if I should bring this up here or on #64!

I'm in google colab and getting this exception. Were you able to this working?

BTW thanks for this

This worked for me (see comments on the accepted answer, as well).

@tungstenm
Copy link

Has anyone found a workaround/solution for running snscrape on aws?
I am getting the same error: "ScraperException: Unable to find guest token"

@mahdix
Copy link

mahdix commented Jan 5, 2022

Same issue on DO. Works perfectly fine on my laptop but on my VPS fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module:twitter upstream wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

6 participants