question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't download twitter private videos.

See original GitHub issue

Checklist

Region

anywhere

Description

First of all, I appreciate your time and efforts involved in making and maintaining yt-dlp. I found it very useful and convenient.

I wanna download a twitter video which is only available for the uploader’s followers. I extracted cookies in twitter with Get cookies.txt (chrome extension), named ‘cookies.txt’, and placed it in the folder in which I’m gonna download the private video. And then, I openned cmd in the folder and typed the following command;

yt-dlp --cookies cookies.txt -F https://twitter.com/[UserID]/status/[TweetID]

(I blinded a detailed pin number because of concern about privacy being exposed. I’m so sorry and would appreciate if you could be willing to understand me.)

And it responded like this;

[twitter] [TweetID]: Downloading guest token ERROR: [twitter] [TweetID]: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: ‘Forbidden’>); please report this issue on https://github.com/yt-dlp/yt-dlp , filling out the “Broken site” issue template properly. Confirm you are on the latest version using -U (caused by <HTTPError 403: ‘Forbidden’>); please report this issue on https://github.com/yt-dlp/yt-dlp , filling out the “Broken site” issue template properly. Confirm you are on the latest version using -U

I changed the cookies text file into new one and executed all the rest of the process once again, but the result was the same. Did I miss something? Are there more processes that I have to do? It would be great if anyone could help me. Thank you.

Verbose log

[debug] Command-line config: ['-vU', '--cookies', 'cookies.txt', '-F', 'https://twitter.com/[UserID]/status/[TweetID]']
[debug] Encodings: locale cp949, fs utf-8, out utf-8, err utf-8, pref cp949
[debug] yt-dlp version 2022.02.04 [c1653e9] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19043-SP0
[debug] exe versions: ffmpeg git-2020-06-28-4cfcfb3, ffprobe git-2020-06-28-4cfcfb3
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.02.04, Current version: 2022.02.04
yt-dlp is up to date (2022.02.04)
[debug] [twitter] Extracting URL: https://twitter.com/[UserID]/status/[TweetID]
[twitter] [TweetID]: Downloading guest token
ERROR: [twitter] [TweetID]: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on  https://github.com/yt-dlp/yt-dlp , filling out the "Broken site" issue template properly. Confirm you are on the latest version using -U (caused by <HTTPError 403: 'Forbidden'>); please report this issue on  https://github.com/yt-dlp/yt-dlp , filling out the "Broken site" issue template properly. Confirm you are on the latest version using -U
  File "yt_dlp\extractor\common.py", line 730, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 3558, in urlopen
  File "urllib\request.py", line 531, in open
  File "urllib\request.py", line 640, in http_response
  File "urllib\request.py", line 569, in error
  File "urllib\request.py", line 502, in _call_chain
  File "urllib\request.py", line 649, in http_error_default

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pukkandancommented, Feb 18, 2022

If you have python installed, see this https://github.com/yt-dlp/yt-dlp#with-pip

Otherwise, wait for next release

1reaction
pukkandancommented, Feb 14, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

how to save twitter private account videos? - Reddit
i mean, i have followed the page, but it seems that the videos are private..are there any way to download private videos on...
Read more >
How to Download Private Twitter Videos
If you are looking to download a private video from Twitter, then all you got to do is to know the URL of...
Read more >
How to Download Twitter Videos on Your Android, iOS Mobile ...
Open Twitter and search for the video you want to download · Now, copy the direct link of the tweet that contains the...
Read more >
How to download twitter video from a protected account
This is a quick demonstration on how to download twitter video from protected account. ... Your browser can't play this video.
Read more >
Yes, you absolutely can download Twitter videos to your ...
With Download Twitter Videos setup, use the Twitter app to find a tweet that contains the video you want to save. Tap on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found