Skip to content

Instantly share code, notes, and snippets.

View joeheyming's full-sized avatar
💭
Cautiously Optimistic

Joe Heyming ¯\_(ツ)_/¯ joeheyming

💭
Cautiously Optimistic
View GitHub Profile
@joeheyming
joeheyming / simpsons.sh
Created May 18, 2020 16:05
Download all the simpsons episodes
#!/bin/bash
LINKS=$(curl --silent http://pixa.club/en/the-simpsons/ | grep -E 'href="/en/the-simpsons/season-[0-9]+/epi' | tr -d ' ' | awk -F'"' '{print $2}' | gsort --version-sort | tail -n+250 )
# echo "LINKS = $LINKS"
cd ~/simpsons;
# exit 1
set -x
for link in $LINKS; do
echo $link;
season=$(basename $(dirname $link));