2011/6/19 Gerhardus Geldenhuis <gerhardus.geldenh...@gmail.com> > f = open(filename,'r') > filecontents = f.read() > Try f.read().splitlines() instead.
> tuples = re.findall(r'^(\d+\.\d+\.\d+\.\d+).*\"GET(.*)HTTP', > filecontents) > This searches the beginning of the lines, but you downloaded the whole page as one string. Another hint is to open it in an editor and investigate it by your eyes, where are the strings you look for. :-) Péter
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor