Skip to content

Instantly share code, notes, and snippets.

View Drezil's full-sized avatar
🏳️‍⚧️
Busy with life. And work. And Partners 🥰

Drezil Drezil

🏳️‍⚧️
Busy with life. And work. And Partners 🥰
View GitHub Profile
@Drezil
Drezil / HPMoR Downloader
Created August 6, 2014 19:58
Little Script to download all Harry Potter and the methods of rationality episodes.
#!/bin/bash
mkdir -p HPMoR
cd HPMoR
for episode in `wget -q -O - http://www.hpmorpodcast.com/?page_id=56 | sed -n -e "s/.*http\(.*\)\\.mp3.*/http\1.mp3/p" | uniq`
do
file="`echo "$episode" | sed -n -e 's/.*\/\([^/].*\)\.mp3.*/\1.mp3/p'`"
if [[ -f "$file" ]]; then
echo "$file exists. Skipping."
else