Created
July 24, 2016 05:02
-
-
Save gansai/1d1d9160a8b7102fd2ba8364246212f8 to your computer and use it in GitHub Desktop.
List Youtube links from Google Videos Search Result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = [], l = document.links; | |
for(var i=0; i<l.length; i++) { | |
arr.push(l[i].href); | |
} | |
for(var i=0; i<arr.length;i++){ | |
var str = arr[i]; | |
if(str.startsWith("https://www.youtube.com")){ | |
console.log(str); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment