yt-dlp: [Instagram] Downloading stories seems to be currently broken as of today

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

Spain

Provide a description that is worded well enough to be understood

Related to a previous issue that was patched and it’s now closed, I’m opening this one as it seems that instagram might have changed their API output once again.

Opening this as requested by @bashonly

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

PS E:\Disco Incoming\Descargas> E:\Descargas2016\yt-dlp.exe -Uvv --cookies-from-browser chrome https://www.instagram.com/stories/mireia.rodriguez44/3328225374116579591/
[debug] Command-line config: ['-Uvv', '--cookies-from-browser', 'chrome', 'https://www.instagram.com/stories/mireia.rodriguez44/3328225374116579591/']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2024.03.20.232704 from yt-dlp/yt-dlp-nightly-builds [07f5b2f75] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 2023-10-09-git-37b5f4a1f6-full_build-www.gyan.dev (setts), ffprobe 2023-10-09-git-37b5f4a1f6-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
Extracting cookies from chrome
[debug] Extracting cookies from: "C:\Users\alzaj\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies"
[debug] Found local state file at "C:\Users\alzaj\AppData\Local\Google\Chrome\User Data\Local State"
Extracted 3296 cookies from chrome
[debug] cookie version breakdown: {'v10': 3278, 'other': 0, 'unencrypted': 26}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1806 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2024.03.20.232704 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.03.20.232704 from yt-dlp/yt-dlp-nightly-builds)
[instagram:story] Extracting URL: https://www.instagram.com/stories/mireia.rodriguez44/3328225374116579591/
[instagram:story] 3328225374116579591: Downloading webpage
[instagram:story] 3328225374116579591: Downloading JSON metadata
ERROR: [instagram:story] 3328225374116579591: You need to log in to access this content. Use --cookies, --cookies-from-browser, --username and --password, --netrc-cmd, or --netrc (instagram) to provide account credentials
  File "yt_dlp\extractor\common.py", line 732, in extract
  File "yt_dlp\extractor\instagram.py", line 718, in _real_extract
  File "yt_dlp\extractor\common.py", line 1192, in raise_login_required

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 23 (4 by maintainers)

Most upvoted comments

Can confirm this is again the case with the current nightly, has been happening since thursday now.

Broken again? I’m not sure if it necessary to open a new issue

C:\Users\jails>python -m yt_dlp -vU --cookies-from-browser firefox https://www.instagram.com/stories/dinablin/3340127048905553543/
[debug] Command-line config: ['-vU', '--cookies-from-browser', 'firefox', 'https://www.instagram.com/stories/dinablin/3340127048905553543/']
[debug] Encodings: locale cp1251, fs utf-8, pref cp1251, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.03.10 from yt-dlp/yt-dlp [615a84447]
[debug] Lazy loading extractors is disabled
[debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-10-10.0.22631-SP0 (OpenSSL 1.1.1t  7 Feb 2023)
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, mutagen-1.47.0, requests-2.31.0, sqlite3-3.40.1, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\jails\AppData\Roaming\Mozilla\Firefox\Profiles\ybruea6z.default-release\cookies.sqlite"
Extracted 11 cookies from firefox
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1809 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2024.03.10 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2024.03.10 from yt-dlp/yt-dlp)
[instagram:story] Extracting URL: https://www.instagram.com/stories/dinablin/3340127048905553543/
[instagram:story] 3340127048905553543: Downloading webpage
[instagram:story] 3340127048905553543: Downloading JSON metadata
ERROR: [instagram:story] 3340127048905553543: You need to log in to access this content. Use --cookies, --cookies-from-browser, --username and --password, --netrc-cmd, or --netrc (instagram) to provide account credentials

@bashonly

Seems to be working again for me on the latest nightly, as well as your patched build.

Think we can close it for now.