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

No guest token found after five retry. #28

Closed
exzhawk opened this issue Jan 6, 2022 · 1 comment
Closed

No guest token found after five retry. #28

exzhawk opened this issue Jan 6, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@exzhawk
Copy link
Contributor

exzhawk commented Jan 6, 2022

Describe the bug
Always get RuntimeError: No guest token found after five retry in a few days.

To Reproduce
twspace_dl -U https://twitter.com/some_user

Expected behavior
Work normally

Output
If applicable, add the output of the command to help explain your problem.

Traceback (most recent call last):er:4
  File "/home/epix/.local/bin/twspace_dl", line 8, in <module>
    sys.exit(main())
  File "/home/epix/.local/lib/python3.9/site-packages/twspace_dl/__main__.py", line 120, in main
    twspace_dl = TwspaceDL.from_user_tweets(args.user_url, args.output)
  File "/home/epix/.local/lib/python3.9/site-packages/twspace_dl/TwspaceDL.py", line 39, in from_user_tweets
    user_id = TwspaceDL.user_id(url)
  File "/home/epix/.local/lib/python3.9/site-packages/twspace_dl/TwspaceDL.py", line 123, in user_id
    "x-guest-token": TwspaceDL.guest_token(),
  File "/home/epix/.local/lib/python3.9/site-packages/twspace_dl/TwspaceDL.py", line 146, in guest_token
    raise RuntimeError("No guest token found after five retry")
RuntimeError: No guest token found after five retry

Desktop (please complete the following information):

  • OS: Arch
  • Version commit dc38028
  • Installation method git

Additional context
Twitter may be changing the API. Need a new way to get guest tokens.
some reference:

JustAnotherArchivist/snscrape#326 (comment)
JustAnotherArchivist/snscrape#325 (comment)
JustAnotherArchivist/snscrape@0336ce1

Will try referred methods myself if I have some spare time.

@exzhawk exzhawk added the bug Something isn't working label Jan 6, 2022
@Ryu1845 Ryu1845 closed this as completed in 34678ea Jan 6, 2022
@Ryu1845
Copy link
Collaborator

Ryu1845 commented Jan 6, 2022

✔️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants