Advertisement
Guest User

Archiving a GETchan thread... with no missing images!

a guest
Apr 25th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. mkdir arch; cd arch
  2. thread=221941
  3. mkdir $thread; cd $thread
  4. wget -r -nH -l 1 -A jpeg,jpg,png,gif http://www.ussc.su/GET/res/$thread.html  # Get full-size images
  5. wget -p -k -nH http://www.ussc.su/GET/res/$thread.html  # Get HTML file and thumbnails
  6. cd $thread/GET/res
  7. cp $thread.html orig-$thread.html
  8. sed -i 's@http://www.ussc.su/@../../@g' $thread.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement