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

[instagram] Support /share/ URLs #11630

Closed
10 of 11 tasks
Apilian opened this issue Nov 25, 2024 · 2 comments · Fixed by #11677
Closed
10 of 11 tasks

[instagram] Support /share/ URLs #11630

Apilian opened this issue Nov 25, 2024 · 2 comments · Fixed by #11677
Labels
site-bug Issue with a specific website

Comments

@Apilian
Copy link

Apilian commented Nov 25, 2024

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

Indonesian

Provide a description that is worded well enough to be understood

The issue occurs when trying to extract a video from Instagram using yt-dlp in the Seal app, where the tool fails to retrieve the video URL due to a problem in the extraction process, possibly caused by changes in the Instagram API or webpage structure, and I’ve made sure I’m using the latest version.

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

Latest version: nightly@2024.11.24.232931 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.11.24.232931 from yt-dlp/yt-dlp-nightly-builds)
[Instagram] Extracting URL: https://www.instagram.com/share/reel/_69O6RoGd
[Instagram] _69O6RoGd: Setting up session
[Instagram] _69O6RoGd: Downloading JSON metadata

[debug] Command-line config: ['-P', '/storage/emulated/0/Download/Seal', '--newline', '--config-locations', '/data/user/0/com.junkfood.seal/cache/config.txt', '--no-cache-dir', '--ffmpeg-location', '/data/app/~~A2GvDkNiduFYW1kU1Oy9Fg==/com.junkfood.seal-iKQxGY5uYwqmCWT7tKicWA==/lib/arm64/libffmpeg.so', 'https://www.instagram.com/share/reel/_69O6RoGd']
[debug] | Config "/data/user/0/com.junkfood.seal/cache/config.txt": ['-vU']
[debug] Encodings: locale utf-8, fs utf-8, pref utf-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version nightly@2024.11.24.232931 from yt-dlp/yt-dlp-nightly-builds [4b5eec0aa] (zip)
[debug] Python 3.11.10 (CPython aarch64 64bit) - Linux-4.19.191-g65cea2ea204b-dirty-aarch64-with-libc (OpenSSL 3.3.2 3 Sep 2024, libc)
[debug] exe versions: ffmpeg 7.0.1 (setts), ffprobe 7.0.1
[debug] Optional libraries: Cryptodome-3.20.0, mutagen-1.47.0, sqlite3-3.46.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1837 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
WARNING: [Instagram] _69O6RoGd: Instagram API is not granting access
WARNING: [Instagram] unable to extract username; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
ERROR: [Instagram] _69O6RoGd: Unable to extract video url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/data/user/0/com.junkfood.seal/no_backup/youtubedl-android/yt-dlp/yt-dlp/yt_dlp/extractor/common.py", line 742, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/user/0/com.junkfood.seal/no_backup/youtubedl-android/yt-dlp/yt-dlp/yt_dlp/extractor/instagram.py", line 489, in _real_extract
    video_url = self._og_search_video_url(webpage, secure=False)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/user/0/com.junkfood.seal/no_backup/youtubedl-android/yt-dlp/yt-dlp/yt_dlp/extractor/common.py", line 1499, in _og_search_video_url
    return self._html_search_regex(regexes, html, name, **kargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/user/0/com.junkfood.seal/no_backup/youtubedl-android/yt-dlp/yt-dlp/yt_dlp/extractor/common.py", line 1382, in _html_search_regex
    res = self._search_regex(pattern, string, name, default, fatal, flags, group)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/user/0/com.junkfood.seal/no_backup/youtubedl-android/yt-dlp/yt-dlp/yt_dlp/extractor/common.py", line 1346, in _search_regex
    raise RegexNotFoundError(f'Unable to extract {_name}')
@Apilian Apilian added site-bug Issue with a specific website triage Untriaged issue labels Nov 25, 2024
@bashonly bashonly changed the title Instagram api is not granting access [instagram] Support /share/ URLs Nov 25, 2024
@bashonly bashonly removed the triage Untriaged issue label Nov 25, 2024
@bashonly
Copy link
Member

This /share/reel/ URL is a new URL format that isn't supported by the extractor. OP's URL redirects to https://www.instagram.com/reel/DB0YWyzPdcX/

@User0998
Copy link

User0998 commented Dec 1, 2024

just use this
curl -Ls -o /dev/null -w %{url_effective} insta_share_url_here

vladisslav2011 pushed a commit to vladisslav2011/yt-dlp that referenced this issue Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants