vk.com: Unable to extract json #9529

Closed
opened 2026-02-21 03:34:58 -05:00 by deekerman · 0 comments
Owner

Originally created by @DinoAsm on GitHub (Dec 29, 2016).

$ youtube-dl -v 'http://vk.com/video_ext.php?gid=5&oid=-69328224&id=456239594&hash=a25a3ac6971ed9bc'
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://vk.com/video_ext.php?gid=5&oid=-69328224&id=456239594&hash=a25a3ac6971ed9bc']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.12.22
[debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.6
[debug] exe versions: ffmpeg 3.2-2, ffprobe 3.2-2
[debug] Proxy map: {}
[vk] -69328224_456239594: Downloading webpage
ERROR: Unable to extract json; 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/dinoasm/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
    ie_result = ie.extract(url)
  File "/home/dinoasm/bin/youtube-dl/youtube_dl/extractor/common.py", line 358, in extract
    return self._real_extract(url)
  File "/home/dinoasm/bin/youtube-dl/youtube_dl/extractor/vk.py", line 381, in _real_extract
    r'<!json>\s*({.+?})\s*<!>', info_page, 'json'),
  File "/home/dinoasm/bin/youtube-dl/youtube_dl/extractor/common.py", line 661, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract json; 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.

It can't download video from vk.com. I have confirmed that it reproduces with several another URLs. Maybe with any video URL from vk.com.

BTW, direct video URL could be retrieved like this:

$ curl -s 'http://vk.com/video_ext.php?gid=5&oid=-69328224&id=456239594&hash=a25a3ac6971ed9bc' | grep -o 'http://.*720\.mp4'
http://cs7-6v4.vk-cdn.net/p8/a89579133dc9.720.mp4
Originally created by @DinoAsm on GitHub (Dec 29, 2016). ``` $ youtube-dl -v 'http://vk.com/video_ext.php?gid=5&oid=-69328224&id=456239594&hash=a25a3ac6971ed9bc' [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'-v', u'http://vk.com/video_ext.php?gid=5&oid=-69328224&id=456239594&hash=a25a3ac6971ed9bc'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2016.12.22 [debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.6 [debug] exe versions: ffmpeg 3.2-2, ffprobe 3.2-2 [debug] Proxy map: {} [vk] -69328224_456239594: Downloading webpage ERROR: Unable to extract json; 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/dinoasm/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info ie_result = ie.extract(url) File "/home/dinoasm/bin/youtube-dl/youtube_dl/extractor/common.py", line 358, in extract return self._real_extract(url) File "/home/dinoasm/bin/youtube-dl/youtube_dl/extractor/vk.py", line 381, in _real_extract r'<!json>\s*({.+?})\s*<!>', info_page, 'json'), File "/home/dinoasm/bin/youtube-dl/youtube_dl/extractor/common.py", line 661, in _search_regex raise RegexNotFoundError('Unable to extract %s' % _name) RegexNotFoundError: Unable to extract json; 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. ``` It can't download video from vk.com. I have confirmed that it reproduces with several another URLs. Maybe with any video URL from vk.com. BTW, direct video URL could be retrieved like this: ``` $ curl -s 'http://vk.com/video_ext.php?gid=5&oid=-69328224&id=456239594&hash=a25a3ac6971ed9bc' | grep -o 'http://.*720\.mp4' http://cs7-6v4.vk-cdn.net/p8/a89579133dc9.720.mp4 ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#9529
No description provided.