Created
July 28, 2018 08:48
-
-
Save taroyanaka/110617dca519f41d135fb792ccf983a8 to your computer and use it in GitHub Desktop.
it need youtube-dl
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
#!/bin/sh | |
# via proxy version | |
# curl https://www.xvideos.com/best/2018-04 | grep video | grep href | grep data-videoid | awk '{gsub(/data-videoid=[0-9]*/,"");print}' | awk '{print $2}' | awk '{gsub(/id\=\"/,"");gsub(/_/,"");gsub(/\"$/,"/");gsub(/^/,"https://www.xvideos.com/");print}' | cat | while read LINE; do; youtube-dl -f mp4 --proxy [email protected]:[email protected]:6060 "${LINE}"; done; | |
# no proxy version | |
curl https://www.xvideos.com/best/2018-04 | grep video | grep href | grep data-videoid | awk '{gsub(/data-videoid=[0-9]*/,"");print}' | awk '{print $2}' | awk '{gsub(/id\=\"/,"");gsub(/_/,"");gsub(/\"$/,"/");gsub(/^/,"https://www.xvideos.com/");print}' | cat | while read LINE; do; youtube-dl -f mp4 "${LINE}"; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment