Skip to content

Instantly share code, notes, and snippets.

@taroyanaka
Created July 28, 2018 08:48
Show Gist options
  • Save taroyanaka/110617dca519f41d135fb792ccf983a8 to your computer and use it in GitHub Desktop.
Save taroyanaka/110617dca519f41d135fb792ccf983a8 to your computer and use it in GitHub Desktop.
it need youtube-dl
#!/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 foo@bar.com:foobar@foo.barcom: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