-
Notifications
You must be signed in to change notification settings - Fork 10k
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
can not download instagram video #26377
Comments
I can't reproduce this issue. I'm not really sure, but it looks like you don't have a
|
after install ffmpeg
|
try other library |
I have the same issue.
|
Here is output from mac:
|
I already tried to upgrade to the newer version of youtube-dl, it didn't help |
Maybe instagram is rate limiting your server, or serving different content to its IP. What's the output of |
@llacb47 That's actually a super smart guess! |
Could it be something related to TLS verification? While in my case every handshake is made properly, in case of @ilyailya there are some outputs like |
No. It's rate-limiting, plain and simple. If you log in to instagram from your server's ip (even if you then log out), it should not happen anymore |
@llacb47 I'm having a hard time imagining how to do it, do you have any ideas? |
@ilyailya Have you found a solution? I am also having the same issue |
@dtunctuncer, unfortunately, not. I've tried authorising through this lib https://github.com/ping/instagram_private_api, but it didn't help. If you will find solution, pls post it here |
I could not download video s IGTV too (I could see it in browser):
|
I've had this issue for a while as well and it keeps getting closed by the admins. Literally the same problem. #25624 (comment) |
I made a small breakthrough on this issue. TL,DR: You'll need to put
at the end of the link to get the permalink for IG videos I noticed that whenever I tried to load https://www.instagram.com/p/CItyT4OgA-K from any logged-out session (whether or not I had my VPN on), I would just get the login page. I don't think it's a rate limit as some have described. I then tried to point youtube-dl at the place where I saw the video publicly, https://www.huffingtonpost.ca/entry/schitts-creek-all-i-want-for-christmas-is-you_ca_5fd8cb2ac5b62f31c2008d52, and it succeeded. Which made me realize that the public embed link is available here, and found this in the embed code: data-instgrm-permalink="https://www.instagram.com/p/CItyT4OgA-K/?utm_source=ig_embed&utm_campaign=loading" I tried that link, and it worked like a charm! $ youtube-dl -v -f mp4 -o "callums2.mp4" https://www.instagram.com/p/CItyT4OgA-K/?utm_source=ig_embed
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-f', 'mp4', '-o', 'callums2.mp4', 'https://www.instagram.com/p/CItyT4OgA-K/?utm_source=ig_embed']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.12.14
[debug] Python version 3.9.1 (CPython) - macOS-11.1-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Proxy map: {}
[Instagram] CItyT4OgA-K: Downloading webpage
[debug] Invoking downloader on 'https://scontent-lga3-2.cdninstagram.com/v/t50.2886-16/131185275_118131150043383_3233177926723472067_n.mp4?_nc_ht=scontent-lga3-2.cdninstagram.com&_nc_cat=103&_nc_ohc=AZlZVK_S7xsAX-5ituf&oe=5FE191E4&oh=59622f9c34e4c41ccb710f7113d30fbf'
[download] Destination: callums2.mp4
[download] 100% of 3.26MiB in 00:01 Perhaps this can be written into the code as a catch? The behavior seems pretty consistent as far as I can tell. |
Hello! I tried to make this like the last answer, and get error. It may be blocked to download again?
|
Hi, I've also had issues downloading instagram videos with youtube-dl resulting in a 'unable to extract video url' error, however I've managed to find the fix for my specific issue and hope it helps others: It's because Instagram requires you to login first, so you need to create an instagram cookies text file (I use the chrome extension cookies.txt) and save it to the same location as your youtube-dl.exe, then add the parameters --cookies "name-of-instagram-cookies.txt". Hope this helped! |
Interestingly enough, my cookies text file that i exported using an extension was the thing that was causing problems, and it couldn't parse the video url or username, removing that part of the command. After i removed it, it started downloading the video properly. |
Since this issue is the first hit in the search, I'll add some info. |
youtube-dl version
Verbose log
Description
can not download instagram video
WRITE DESCRIPTION HERE
The text was updated successfully, but these errors were encountered: