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

Failed to get tweet details #34

Open
LambertWM opened this issue Oct 24, 2023 · 0 comments
Open

Failed to get tweet details #34

LambertWM opened this issue Oct 24, 2023 · 0 comments

Comments

@LambertWM
Copy link

Couldn't download one of my own videos from twitter:

Status code: 404.
Tweet url: https://twitter.com/never_tomorrow/status/1327680318002900992

with some extra debug output below:

OUTPUT:

`(venv) C:[...]\PythonTwitterVideoScraper\Python>python twitter-video-dl.py https://twitter.com/never_tomorrow/status/1327680318002900992 test.mp4
args.twitter_url: https://twitter.com/never_tomorrow/status/1327680318002900992
file_name: test.mp4

get_tweet_details()

url:https://twitter.com/i/api/graphql/wTXkouwCKcMNQtY-NcDgAA/TweetDetail?variables=%7B%22with_rux_injections%22%3A%20false%2C%20%22includePromotedContent%22%3A%20true%2C%20%22withCommunity%22%3A%20true%2C%20%22withQuickPromoteEligibilityTweetFields%22%3A%20true%2C%20%22withBirdwatchNotes%22%3A%20true%2C%20%22withDownvotePerspective%22%3A%20false%2C%20%22withReactionsMetadata%22%3A%20false%2C%20%22withReactionsPerspective%22%3A%20false%2C%20%22withVoice%22%3A%20true%2C%20%22withV2Timeline%22%3A%20true%2C%20%22focalTweetId%22%3A%20%221327680318002900992%22%7D&features=%7B%22responsive_web_graphql_exclude_directive_enabled%22%3A%20true%2C%20%22verified_phone_label_enabled%22%3A%20false%2C%20%22responsive_web_graphql_timeline_navigation_enabled%22%3A%20true%2C%20%22responsive_web_graphql_skip_user_profile_image_extensions_enabled%22%3A%20false%2C%20%22tweetypie_unmention_optimization_enabled%22%3A%20true%2C%20%22vibe_api_enabled%22%3A%20false%2C%20%22responsive_web_edit_tweet_api_enabled%22%3A%20false%2C%20%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3A%20false%2C%20%22view_counts_everywhere_api_enabled%22%3A%20true%2C%20%22longform_notetweets_consumption_enabled%22%3A%20true%2C%20%22tweet_awards_web_tipping_enabled%22%3A%20false%2C%20%22freedom_of_speech_not_reach_fetch_enabled%22%3A%20false%2C%20%22standardized_nudges_misinfo%22%3A%20false%2C%20%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3A%20false%2C%20%22interactive_text_enabled%22%3A%20false%2C%20%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3A%20true%2C%20%22responsive_web_text_conversations_enabled%22%3A%20false%2C%20%22longform_notetweets_richtext_consumption_enabled%22%3A%20false%2C%20%22responsive_web_enhance_cards_enabled%22%3A%20false%7D
bearer_token:AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA

guest_token:1716764611653878046

details:<Response [404]>

details.status_code:404

Traceback (most recent call last):
File "twitter-video-dl.py", line 26, in
tvdl.download_video(args.twitter_url, file_name)
File "C:[...]\PythonTwitterVideoScraper\Python\src\twitter_video_dl\twitter_video_dl.py", line 365, in download_video
resp = get_tweet_details(tweet_url, guest_token, bearer_token)
File "C:[...]\PythonTwitterVideoScraper\Python\src\twitter_video_dl\twitter_video_dl.py", line 160, in get_tweet_details
assert details.status_code == 200, f'Failed to get tweet details. 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: {details.status_code}. Tweet url: {tweet_url}'
AssertionError: Failed to get tweet details. 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: 404. Tweet url: https://twitter.com/never_tomorrow/status/1327680318002900992`

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