import requests
req = requests.get('https://vk.com/video-30316056_456326877')
with open('video.mp4', 'wb') as video:
video.write(req.content)
import youtube_dl
ydl_opts = {}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(['https://vk.com/video-30316056_456326877'])
# [vk] -30316056_456326877: Downloading JSON metadata
# [vk] -30316056_456326877: Downloading m3u8 information
# [hlsnative] Downloading m3u8 manifest
# [hlsnative] Total fragments: 2
# [download] Destination: webm--30316056_456326877.mp4
# [download] 100% of 7.31MiB in 00:01
# [ffmpeg] Fixing malformed AAC bitstream in "webm--30316056_456326877.mp4"
# 0