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

assert html.status_code == 200 #35

Open
Ivanov-Norton opened this issue Jan 5, 2024 · 0 comments
Open

assert html.status_code == 200 #35

Ivanov-Norton opened this issue Jan 5, 2024 · 0 comments

Comments

@Ivanov-Norton
Copy link

Traceback (most recent call last):
File "D:\twitterdl\twitter-video-dl-main\twitter-video-dl-main\twitter-video-dl.py", line 25, in
tvdl.download_video(args.twitter_url, file_name)
File "D:\twitterdl\twitter-video-dl-main\twitter-video-dl-main\src\twitter_video_dl\twitter_video_dl.py", line 347, in download_video
bearer_token, guest_token = get_tokens(tweet_url)
^^^^^^^^^^^^^^^^^^^^^
File "D:\twitterdl\twitter-video-dl-main\twitter-video-dl-main\src\twitter_video_dl\twitter_video_dl.py", line 37, in get_tokens
assert html.status_code == 200, f'Failed to get tweet page. 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. Status code: {html.status_code}. Tweet url: {tweet_url}'
AssertionError: Failed to get tweet page. 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. Status code: 400. Tweet url: https://twitter.com/i/status/1742984356245758033

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

1 participant