Skip to content

Instantly share code, notes, and snippets.

@usure
Created April 5, 2012 17:14
Show Gist options
  • Save usure/2312591 to your computer and use it in GitHub Desktop.
Save usure/2312591 to your computer and use it in GitHub Desktop.
4chan thread archiver
#!/bin/bash
$tnumbertnumber=`echo $1 | cut -c32-`
mkdir $tnumber
cd $tnumber
while :
do
wget -e robots=off -E -nd -nc -np -r -k -H -D images.4chan.org,thumbs.4chan.org $1
cp $tnumber.html index.html
sleep 10
done
#backup
#echo "thread number?"
#read tnumber#mkdir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment