Skip to content

Instantly share code, notes, and snippets.

@pedrozath
Created October 16, 2012 00:09
Show Gist options
  • Save pedrozath/3896500 to your computer and use it in GitHub Desktop.
Save pedrozath/3896500 to your computer and use it in GitHub Desktop.
jquery get videos zbrush
videos = ""
lesson = document.location.href.split("/lesson/")[1]
$(".videoThumb a").each(function(i){
video_url = $(this).attr("href").split("videoname=")[1].split("&")[0]
video_name = video_url.split(lesson)[1];
curl_command = "curl -o "+ video_name + " ";
videos += curl_command + video_url + "\n";
});
console.log(videos)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment