Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How do you browse / ‍ ‍ ‍ /?

Name: Anonymous 2010-01-23 7:08

For personal reasons, I do not browse /prog/ from my computer. (I also have not net connection much of the time.)  To look at page I send mail to a demon which runs wget and mails the page back to me. It is very efficient use of my time, but it is slow in real time.

Name: Anonymous 2010-01-24 19:12

>>4
Here's a shell script I wrote to download all the images from a single page of a kusaba based image-board that you can modify to your taste:

#!/bin/bash

echo -n "Enter a domain: "
read DOMAIN
echo -n "Enter a board from "$DOMAIN": "
read BOARD
echo -n "Enter a page from "$DOMAIN/$BOARD": "
read PAGE

URL=$DOMAIN/$BOARD/$PAGE
NWBRD=$DOMAIN'/'$BOARD
NWBRD=`echo $NWBRD | sed 's/\\./\\\\./g; s/\\//\\\\\\//g'`

wget -Oindex http://$URL

grep "res\/" index | sed 's/\(\/res\/[0-9]*\.html\)/\n\1\n/p' | grep "^\/res.*\.html$" | uniq | sed 's/^/http:\/\/'$NWBRD'/' > urls

wget -Otemp -iurls

grep "\/src\/.*\.png" temp | sed 's/\(http[s]*:\/\/.*\.png\)"/\n\1\n/' > pics
grep "\/src\/.*\.jp[e]*g" temp | sed 's/\(http[s]*:\/\/.*\.jp[e]*g\)"/\n\1\n/' >> pics
grep "\/src\/.*\.gif" temp | sed 's/\(http[s]*:\/\/.*\.gif\)"/\n\1\n/' >> pics

egrep '^http' pics | uniq > urls

wget -r -l1 -w2 -np -Agif,jpg,png,jpeg -iurls

rm index temp urls pics

exit 0

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List