#!/usr/bin/python # ############################### # attrition.py # # by mystik # # mystik@twoteeth.net # ############################### # a port of attrition.pl # # originally written by # # r00tabega # ############################### # mine doesn't require # # lynx, though =) # ############################### # useful in cgi scripts. it # # takes the 10 (by # # default) latest mirrored # # defacements on # # attrition.org's mirror and # # prints them (w/ html tags) # ############################### # http://mystik.twoteeth.net/ # ############################### # irc.dugnet.net # ############################### # import urllib url = "http://www.attrition.org/mirror/attrition/" number = 10 # number of defacement mirrors to get lines_down = 25 # probably won't change, but if attrition.org # changes its layout, it could (of course, more # likely it will just fuck up this whole program # beyond repair ;-) page = urllib.urlopen(url) for lines in range(lines_down): page.readline() for defacements in range(number): print page.readline()