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

[facebook] Support Instagram embedded videos #14761

Open
antdude opened this issue Nov 15, 2017 · 9 comments
Open

[facebook] Support Instagram embedded videos #14761

antdude opened this issue Nov 15, 2017 · 9 comments

Comments

@antdude
Copy link

antdude commented Nov 15, 2017

Example:

$ youtube-dl -v "https://www.facebook.com/BlueManGroupFans/posts/1747439181956701" [debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.facebook.com/BlueManGroupFans/posts/1747439181956701']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.11.15
[debug] Python version 3.4.2 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.9
[debug] exe versions: ffmpeg 3.2.5-1, ffprobe 3.2.5-1, rtmpdump 2.4
[debug] Proxy map: {}
[facebook] 1747439181956701: Downloading webpage
ERROR: Unable to extract video ids; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/home/ant/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 784, in extract_info
ie_result = ie.extract(url)
File "/home/ant/bin/youtube-dl/youtube_dl/extractor/common.py", line 437, in extract
ie_result = self._real_extract(url)
File "/home/ant/bin/youtube-dl/youtube_dl/extractor/facebook.py", line 415, in _real_extract
webpage, 'video ids', group='ids'),
File "/home/ant/bin/youtube-dl/youtube_dl/extractor/common.py", line 800, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract video ids; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Thank you in advance. :)

@yan12125 yan12125 changed the title Unable to download Facebook.com's embedded videos. [facebook] Support Instagram embedded videos Nov 27, 2017
@yan12125
Copy link
Collaborator

This is actually an Instagram embedded video https://www.instagram.com/p/BbdT4kHAt1G/, which is supported by youtube-dl. The URL can be retrieved via right click -> open link in new tab in Firefox.

@antdude
Copy link
Author

antdude commented Nov 27, 2017

Thank you, yan12125. I didn't know about that trick. :)

@mzfr
Copy link

mzfr commented Aug 6, 2018

@antdude if you don't have this issue now then please close the issue

@antdude
Copy link
Author

antdude commented Aug 6, 2018

mzfr: Shouldn't youtube-dl detect it for users?

@yan12125
Copy link
Collaborator

yan12125 commented Aug 6, 2018

@antdude is right. This is still a valid issue.

@antdude
Copy link
Author

antdude commented Aug 6, 2018

Thank you, yan12125. :)

@edwinjue
Copy link

edwinjue commented Nov 11, 2018

using youtube-dl to download instagram embedded videos is giving me issues. (may have to do with that super long string after /p/ in the url 'BqC7w9ug_ONVU-xLCvOzAB5t8ReM2IIUhfPoto0')

Example:
youtube-dl -cik -f mp4 --restrict-filenames -o "%(title)s-%(id)s.%(ext)s" --verbose https://www.instagram.com/p/BqC7w9ug_ONVU-xLCvOzAB5t8ReM2IIUhfPoto0/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-cik', u'-f', u'mp4', u'--restrict-filenames', u'-o', u'%(title)s-%(id)s.%(ext)s', u'--verbose', u'https://www.instagram.com/p/BqC7w9ug_ONVU-xLCvOzAB5t8ReM2IIUhfPoto0/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.11.07
[debug] Python version 2.7.15rc1 (CPython) - Linux-4.15.0-38-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.0.2-4, ffprobe 3.0.2-4, rtmpdump 2.4
[debug] Proxy map: {}
[Instagram] BqC7w9ug_ONVU-xLCvOzAB5t8ReM2IIUhfPoto0: Downloading webpage
ERROR: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 792, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 508, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/instagram.py", line 192, in _real_extract
video_url = self._og_search_video_url(webpage, secure=False)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1101, in _og_search_video_url
return self._html_search_regex(regexes, html, name, **kargs)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 992, in _html_search_regex
res = self._search_regex(pattern, string, name, default, fatal, flags, group)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 983, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

@NulAsh
Copy link

NulAsh commented Nov 16, 2019

youtube-dl.exe --socket-timeout=30 --verbose https://www.instagram.com/p/Bzk06ekhirOu2XoyYnrpsSDqq49PTrvO8CYihY0/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--socket-timeout=30', '--verbose', 'https://www.instagram.com/p/Bzk06ekhirOu2XoyYnrpsSDqq49PTrvO8CYihY0/']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2019.11.05
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-93755-ga5387f983d, ffprobe N-93755-ga5387f983d
[debug] Proxy map: {'no': '192.168.99.100'}
[Instagram] Bzk06ekhirOu2XoyYnrpsSDqq49PTrvO8CYihY0: Downloading webpage
ERROR: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 530, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\instagram.py", line 195, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 1123, in _og_search_video_url
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 1014, in _html_search_regex
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 1005, in _search_regex
youtube_dl.utils.RegexNotFoundError: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

@dstftw dstftw added this to To do in youtube-dl 2020.12.2 Nov 29, 2020
@dstftw dstftw added this to To do in youtube-dl 2020.12.X Dec 1, 2020
@dstftw dstftw removed this from To do in youtube-dl 2020.12.2 Dec 1, 2020
@turkeyphant
Copy link

Instagram stories are also currently unsupported to I'd like to request this too please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

6 participants