yt-dlp: [instagram] Error when using cookies: "unable to extract username/video url"

Checklist

  • I’m reporting a bug unrelated to a specific site
  • I’ve verified that I’m running yt-dlp version 2022.03.08.1. (update instructions)
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I’ve read the guidelines for opening an issue

Description

error while trying to download private or public instagram videos using cookies option

Verbose log

arthur@blackpower Season 1 % yt-dlp "https://www.instagram.com/p/CaZ9f0JplRO/" --cookies ~/instagram.com_cookies.txt -vU
[debug] Command-line config: ['https://www.instagram.com/p/CaZ9f0JplRO/', '--cookies', '/Users/arthur/instagram.com_cookies.txt', '-vU']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.03.08.2 [e491d06d3]
[debug] Python version 3.10.2 (CPython 64bit) - macOS-11.3-x86_64-i386-64bit
[debug] exe versions: ffmpeg 5.0 (setts), ffprobe 5.0, rtmpdump 2.4
[debug] Optional libraries: brotli, Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.03.08.1, Current version: 2022.03.08.2
yt-dlp is up to date (2022.03.08.2)
[debug] [Instagram] Extracting URL: https://www.instagram.com/p/CaZ9f0JplRO/
[Instagram] CaZ9f0JplRO: Downloading webpage
WARNING: [Instagram] unable to extract username; 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  yt-dlp -U
ERROR: [Instagram] CaZ9f0JplRO: Unable to extract video url; 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  yt-dlp -U
  File "/usr/local/Cellar/yt-dlp/2022.3.8.2/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 617, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/Cellar/yt-dlp/2022.3.8.2/libexec/lib/python3.10/site-packages/yt_dlp/extractor/instagram.py", line 421, in _real_extract
    video_url = self._og_search_video_url(webpage, secure=False)
  File "/usr/local/Cellar/yt-dlp/2022.3.8.2/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1307, in _og_search_video_url
    return self._html_search_regex(regexes, html, name, **kargs)
  File "/usr/local/Cellar/yt-dlp/2022.3.8.2/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1201, in _html_search_regex
    res = self._search_regex(pattern, string, name, default, fatal, flags, group)
  File "/usr/local/Cellar/yt-dlp/2022.3.8.2/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1192, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (18 by maintainers)

Commits related to this issue

Most upvoted comments

It will be fixed when someone fixes it! Bombarding with duplicate issues/pointless comments is not helping