Skip to content

Instantly share code, notes, and snippets.

View agentd00nut's full-sized avatar

agentd00nut agentd00nut

View GitHub Profile
find_episode_link(){
root=$1
page=$2
show=$3
ep=$4
url="${root}?page=${page}"
thing=$(curl -s -L "$url" | egrep -o "\/watch\/${show}\/.​*-${ep}-*​.*'" | uniq | sed "s/'//g" );
page=$((page+1))