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

error mainjs url when to download video from https://twitter.com/nocontextelin/status/1825886964920496605 #41

Open
azzam2912 opened this issue Aug 22, 2024 · 1 comment

Comments

@azzam2912
Copy link

python3 twitter-video-dl.py https://twitter.com/nocontextelin/status/1825886964920496605 elin.mp4
Traceback (most recent call last):
File "/Users/xeratha-hagavi/programming/Python/twitter-video-dl/twitter-video-dl.py", line 25, in
tvdl.download_video(args.twitter_url, file_name)
File "/Users/xeratha-hagavi/programming/Python/twitter-video-dl/src/twitter_video_dl/twitter_video_dl.py", line 347, in download_video
bearer_token, guest_token = get_tokens(tweet_url)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/xeratha-hagavi/programming/Python/twitter-video-dl/src/twitter_video_dl/twitter_video_dl.py", line 41, in get_tokens
assert mainjs_url is not None and len(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Failed to find main.js file. If you are using the correct Twitter URL this suggests a bug in the script. Please open a GitHub issue and copy and paste this message. Tweet url: https://twitter.com/nocontextelin/status/1825886964920496605

@GeniusMK2
Copy link

main.js does not be contained in tweet_url html. Need to fetch it from request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants