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

vk.com: Unable to extract json #11555

Closed
DinoAsm opened this issue Dec 29, 2016 · 0 comments
Closed

vk.com: Unable to extract json #11555

DinoAsm opened this issue Dec 29, 2016 · 0 comments

Comments

@DinoAsm
Copy link

@DinoAsm DinoAsm commented 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
@dstftw dstftw closed this in 9cdb0a3 Dec 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.