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
Downloading video from VK.COM returns HTTP error 404 #31512
Comments
Hi, I've almost the same issue as you Here my log on verbose :
|
My issue seems to be unrelated, sorry |
Although I can't get the video without account details, I can't reproduce the problem with the yt-dl program (as opposed to your wrapper). Both the git master and release versions identify that I would need to be a registered user. Perhaps VK checks the user details before trying to find the referenced resource, and the 404 only arises then. Please run |
Command returns the same. Also you can open this video by link in incognito mode and It will still work. I think, If there was a login problem, It would return an "This video is only available for registered users" error.
|
Indeed, "This video is only available for registered users" is what I get. What happens if you leave out the |
this works - youtube-dl -o '%(title).20s' --no-part --restrict-filenames --user-agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" --add-header "Cookie:tstc=p; Expires=Tue, 01 Feb 2033 08:39:34 GMT; Path=/; HttpOnly;" --referer "https://vk.com" "https://vkvd183.mycdn.me/?expires=1675759170076&srcIp=76.8.147.101&pr=40&srcAg=CHROME&ms=185.226.52.188&type=1&sig=0yVLdX9Gj88&ct=6&urls=45.136.21.139&clientType=13&appId=512000384397&id=1058544814656" |
Yes, but in order to get to that point yt-dl has to fetch the JSON that lists that URL. What about #31512 (comment)? I wonder what the |
It seems I fixed this issue by replacing one of the arguments for But I don't exactly understand what am I doing, so I wouldn't rather create a pull request. |
OK, that rings a bell: try the patch at #31035 (comment) ! |
Well, fixes in both last two comments work, but now mostly the same code returns a different error. I think reason for this error isn't related to vk.py but I also didn't found someone with the same error. I can close the issue if you think i need open new issue to fix this. Code:
Log with verbose:
|
Will be fixed by back-port of newly updated yt-dlp extractor:
|
Checklist
Verbose log
Description
I try to download any video from vk.com and It returns HTTP error 404 as you can see. I use cookies to log in. In cookies.txt I have only vk.com cookies I downloaded with Get cookies.txt addon for Chrome. The video and URL surely exist. The python code you can see here:
The text was updated successfully, but these errors were encountered: