The following bash script pops out recently edited wikipedia articles. Matrix-Style!
[ "$WIKI" != "" ] || WIKI="http://de.wikipedia.org/"
echo "using $WIKI";
UPDATEURL="$WIKI/w/index.php?title=Special:Recentchanges&days=1&limit=100&hideminor=1"
# lets get it first
while true; do
#echo "getting $UPDATEURL" 1>&2;
wget -q -O rc.txt $UPDATEURL
cat rc.txt | sed "s/<[^>]*>//g" | grep -Eo '\. \. [^;]*' | grep -v ":" | sed "s/^\. \. *//g"
# next url
FROM=$(grep -Eo "from=[0-9]*" rc.txt|sort -nr|head -n 1)
UPDATEURL="$WIKI/w/index.php?title=Special:Recentchanges&days=1&limit=500&hideminor=1&$FROM"
sleep 60
done |
while read line; do
echo $line;
sleep 0.4;
done
}
Recent Comments