Last active
February 3, 2018 14:25
-
-
Save derofim/56bc3931119f95e8c8fc1c96d1061a95 to your computer and use it in GitHub Desktop.
play all videos
This file contains hidden or 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
urls=( | |
"YOUR URL 1" | |
"YOUR URL 2" | |
) | |
for (( i = 0; i < ${#urls[@]}; ++i )); do | |
# create filename based on url. | |
filename=`echo ${i}.mp4` | |
echo "downloading ${urls[i]} to $filename" | |
curl -s -o "$filename" "${urls[i]}" | |
done |
This file contains hidden or 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 result = []; | |
var x = document.querySelectorAll('.attachment a'); | |
Array.prototype.forEach.call(x, function(elements, index) { | |
if(typeof x[index] != 'undefined' && x[index]) { | |
result.push("\""+x[index].href+"\""); | |
} | |
}); | |
console.log(result.join("\n ")); |
This file contains hidden or 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 result = []; | |
var looper = function(data, srcVid, i) { | |
result.push("\""+srcVid.src+"\""); | |
if (i+1 >= data.length) { | |
console.log(result.join("\n ")); | |
return; | |
} | |
var y = data[i+1]; | |
if (y) { | |
y.click(); | |
setTimeout(function(){ | |
looper(data, srcVid, i+1); | |
}, 1000); | |
} | |
} | |
var x = document.getElementsByClassName("session-item-title"); | |
var srcVid = $(".vjs-tech"); | |
looper(x, srcVid, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment