HoloArchivists / twspace-dl

A python module to download twitter spaces.
GNU General Public License v2.0
473 stars 78 forks source link

Unable to get guest token, won't download twitter space #29

Closed xanek closed 2 years ago

xanek commented 2 years ago

Describe the bug Unable to get guest token after multiple tries.

To Reproduce twspace_dl -i

Expected behavior Grab guest token and start download of the twitter space

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

Traceback (most recent call last):er:4
  File "C:\Users\Xanek\AppData\Local\Temp\ON66CE~1\__main__.py", line 142, in main
  File "C:\Users\Xanek\AppData\Local\Temp\ON66CE~1\twspace_dl\TwspaceDL.py", line 235, in download
  File "C:\Users\Xanek\AppData\Local\Temp\ON66CE~1\functools.py", line 969, in __get__
  File "C:\Users\Xanek\AppData\Local\Temp\ON66CE~1\twspace_dl\TwspaceDL.py", line 138, in metadata
  File "C:\Users\Xanek\AppData\Local\Temp\ON66CE~1\twspace_dl\TwspaceDL.py", line 108, in guest_token
RuntimeError: No guest token found after five retry

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Xanek\AppData\Local\Temp\ON66CE~1\__main__.py", line 151, in <module>
  File "C:\Users\Xanek\AppData\Local\Temp\ON66CE~1\__main__.py", line 146, in main
AttributeError: 'TwspaceDL' object has no attribute '_tmpdir'

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Ryu1845 commented 2 years ago

Should be fixed in the next release (see #28) but have you tried retrying? i.e. Does it happen consistently?

xanek commented 2 years ago

yeah it happened constantly, wasnt a 1 time thing

Ryu1845 commented 2 years ago

I'll try to release the fixed version tomorrow

Ryu1845 commented 2 years ago

I'm lacking time because of exams rn, will update when possible.

herowinb commented 2 years ago

I got same error while download a live space. Updated last version. 3 people tried to download and only 1 succeeded. So I replaced Bearer token in twspace_dl.py with my Bearer token, re-install and it back to work again. I think we can't multi download a Space ID with same Bearer token.

Ryu1845 commented 2 years ago

Interesting