Skip to content

Instantly share code, notes, and snippets.

@lifofernandez
Last active December 29, 2022 23:29
Show Gist options
  • Save lifofernandez/500dea6de7e9417ffa5508a354d1b18e to your computer and use it in GitHub Desktop.
Save lifofernandez/500dea6de7e9417ffa5508a354d1b18e to your computer and use it in GitHub Desktop.
Tracks download
w3m -dump BEATPORT_CHAR_URL | grep -A 10 "• \[" | grep -v -e '^$' | sed 's/--//g' | sed 's/ //g' | sed 's/• //g' > SALIDA.txt
cat SALIDA.txt | grep -A 3 "\[" | grep -v "\[" > SALIDA.clean.txt
cat SALIDA.clean.txt | grep -B 2 "-" | sed -z 's/--\n--\n/\n/g' >> SALIDA.clean2.txt
youtube-dl -a LISTA.txt --default-search ytsearch -x --audio-format mp3 --download-archive bajados
youtube-dl -a LISTA.txt --default-search ytsearch -x --audio-format mp3 --continue --ignore-errors --no-overwrites --download-archive bajados.txt
awk -F ' - ' '{print , }' LISTA.txt >> LISTAclean.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment