Instagram links error

#4
by sagar-kris - opened

When I try to transcribe an instagram video (link is of format https://www.instagram.com/reel/[reel-id]), the app returns an error. Unexpected since instagram links should be supported according to https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md##. Any clue why this may be happening?

You can't download reels without logging in to Instagram. YT-DLP does allow this using the options --cookies, --cookies-from-browser, --username and --password, or --netrc (instagram), but this is not exposed in the WebUI:

(base) PS F:\Video\Instagram> yt-dlp "https://www.instagram.com/reel/CpzNBoHjXRg/"
[Instagram] Extracting URL: https://www.instagram.com/reel/CpzNBoHjXRg/
[Instagram] CpzNBoHjXRg: Setting up session
WARNING: [Instagram] CpzNBoHjXRg: No csrf token set by Instagram API
[Instagram] CpzNBoHjXRg: Downloading JSON metadata
WARNING: [Instagram] CpzNBoHjXRg: General metadata extraction failed (some metadata might be missing).
[Instagram] CpzNBoHjXRg: Downloading webpage
WARNING: [Instagram] unable to extract shared data; 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
WARNING: [Instagram] Main webpage is locked behind the login page. Retrying with embed webpage (some metadata might be missing).
[Instagram] CpzNBoHjXRg: Downloading embed webpage
WARNING: [Instagram] unable to extract additional data; 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] CpzNBoHjXRg: Requested content is not available, rate-limit reached or login required. Use --cookies, --cookies-from-browser, --username and --password, or --netrc (instagram) to provide account credentials
(base) PS F:\Video\Instagram> yt-dlp "https://www.instagram.com/reel/CpzNBoHjXRg/" --cookies-from-browser firefox
[Cookies] Extracting cookies from firefox
[Cookies] Extracted 2413 cookies from firefox
[Instagram] Extracting URL: https://www.instagram.com/reel/CpzNBoHjXRg/
[Instagram] CpzNBoHjXRg: Downloading video info
[info] CpzNBoHjXRg: Downloading 1 format(s): dash-123883143974875vd+dash-545333617734384ad
[download] Destination: Video by tcj_japaneseschool [CpzNBoHjXRg].fdash-123883143974875vd.mp4
[download] 100% of    1.65MiB in 00:00:00 at 4.62MiB/s
[download] Destination: Video by tcj_japaneseschool [CpzNBoHjXRg].fdash-545333617734384ad.m4a
[download] 100% of  238.82KiB in 00:00:00 at 3.87MiB/s
[Merger] Merging formats into "Video by tcj_japaneseschool [CpzNBoHjXRg].mp4"
Deleting original file Video by tcj_japaneseschool [CpzNBoHjXRg].fdash-545333617734384ad.m4a (pass -k to keep)
Deleting original file Video by tcj_japaneseschool [CpzNBoHjXRg].fdash-123883143974875vd.mp4 (pass -k to keep)

In other words, you should download the Instagram reel in question using YT-DLP directly, and then just upload the MP4 file to the WebUI (you may replace FireFox with Chrome, if you use Chrome):

yt-dlp "https://www.instagram.com/reel/CpzNBoHjXRg/" --cookies-from-browser firefox

Sign up or log in to comment