You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/.local/bin/twspace_dl", line 8, in
sys.exit(main())
File "/home/.local/lib/python3.9/site-packages/twspace_dl/main.py", line 145, in main
twspace_dl.download()
File "/home/.local/lib/python3.9/site-packages/twspace_dl/TwspaceDL.py", line 224, in download
metadata = self.metadata
File "/usr/lib/python3.9/functools.py", line 969, in get
val = self.func(instance)
File "/home/.local/lib/python3.9/site-packages/twspace_dl/TwspaceDL.py", line 133, in metadata
"x-guest-token": self.guest_token(),
File "/home/.local/lib/python3.9/site-packages/twspace_dl/TwspaceDL.py", line 104, in guest_token
raise RuntimeError("No guest token found after five retry")
RuntimeError: No guest token found after five retry
To Reproduce command you entered
Expected behavior
A clear and concise description of what you expected to happen.
Output
If applicable, add the output of the command to help explain your problem.
here
Desktop (please complete the following information):
It usually fixes itself if you launch the command again. I think just adding a delay between the retries should fix it. I'll still look into your solution though. Thank you.
Describe the bug
Traceback (most recent call last):
File "/home/.local/bin/twspace_dl", line 8, in
sys.exit(main())
File "/home/.local/lib/python3.9/site-packages/twspace_dl/main.py", line 145, in main
twspace_dl.download()
File "/home/.local/lib/python3.9/site-packages/twspace_dl/TwspaceDL.py", line 224, in download
metadata = self.metadata
File "/usr/lib/python3.9/functools.py", line 969, in get
val = self.func(instance)
File "/home/.local/lib/python3.9/site-packages/twspace_dl/TwspaceDL.py", line 133, in metadata
"x-guest-token": self.guest_token(),
File "/home/.local/lib/python3.9/site-packages/twspace_dl/TwspaceDL.py", line 104, in guest_token
raise RuntimeError("No guest token found after five retry")
RuntimeError: No guest token found after five retry
To Reproduce
command you entered
Expected behavior
A clear and concise description of what you expected to happen.
Output
If applicable, add the output of the command to help explain your problem.
Desktop (please complete the following information):
Additional context
solution:
authConstant = 'Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA'
def auth():
headers = {'authorization': authConstant}
rep = s.post('https://api.twitter.com/1.1/guest/activate.json', headers=headers)
return {'authorization': authConstant, 'x-guest-token': rep.json()['guest_token']}, time.time()
The text was updated successfully, but these errors were encountered: