Skip to content

Instantly share code, notes, and snippets.

@b1
Created February 28, 2012 21:28
Show Gist options
  • Save b1/1935276 to your computer and use it in GitHub Desktop.
Save b1/1935276 to your computer and use it in GitHub Desktop.
vk.com music parser from browser console
clear();
var t = $x('//*[@class="play_btn"]/input');
// var t = $$('div#post-23141788_12015 input[type=hidden]');
var ec='';
for(var i=0;i<t.length;i++)
{
var str=t[i].value;
ec+=' '+str.substring(0,str.length-4);
}
console.log(ec);
// then wget it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment