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

[how to] extract all vk urls #4470

Closed
muhasturk opened this issue Dec 14, 2014 · 2 comments
Closed

[how to] extract all vk urls #4470

muhasturk opened this issue Dec 14, 2014 · 2 comments

Comments

@muhasturk
Copy link

@muhasturk muhasturk commented Dec 14, 2014

Hello,
I would like to extract all urls of Rumour Balbal. I run the following command it returns only 12 video urls. But there are 278 videos on his proile.

youtube-dl http://vk.com/videos233941067\?section\=all --username blabla@blabla.com --password blabla -g

How can I extract all 278 urls?

@qyuz
Copy link

@qyuz qyuz commented Dec 24, 2014

I'm not youtube-dl developer/maintainer but I know a way of achieving what you want.

youtube-dl in here is having problems with infinite-scroll functionality, so it'd be good if you could just scrap all the vk urls by yourself and just feed them to youtube-dl and for this we'll need a few steps:

  1. install jquerify bookmarklet
    http://www.learningjquery.com/2009/04/better-stronger-safer-jquerify-bookmarklet/ - Just drag the » jQuerify « to your bookmarks toolbar to install it
  2. open Rumour's page
  3. scroll down to the end of Rumour page
  4. click jQuerify bookmarklet and it'll say something like "This page is now jQuerified with v1.11.1"
  5. open console(F12 in chrome)
  6. run js in console
    $('.video_row_inner_cont>a').get().reduce(function(r, i){ return r += '\r\nhttp://vk.com' + $(i).attr('href')}, '')
  7. run youtube-dl with -a modifier to feed file with all urls or a stream
  8. profit :)

Hope it helps! Contact me if it didn't :)

@zelenin
Copy link

@zelenin zelenin commented Mar 20, 2016

var videos = cur.videoList.all.list;
for (var i = 0; i < videos.length; i++) {
    var video = videos[i];
    var link = 'https://vk.com/video' + video[0] + '_' + video[1];
    console.log(link);
}

I wrote this js for community videos page (https://vk.com/videos-***?section=all)

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
3 participants
You can’t perform that action at this time.