#!/usr/bin/python #antichat.ru info #http://sql.parsers.info #faza02[at]gmail[dot]com import re, urllib print 'antichat.ru info by faza02' while 1: u=raw_input(u'user: ') antichat=urllib.urlopen('http://forum.antichat.ru/member.php?u='+ u).read() nick=re.findall(r'\<span class=\"normal\"\>.*?\</span\>\</td\>',antichat) nick=str(nick)[2:-2] nick=nick[23:] nick=nick.replace('</span></td>','') rep=re.findall(r'\(\<b\>.*?\</b\>/\<b\>.*?\</b\>\)',antichat) rep=str(rep)[2:-2] rep=rep.replace('</b>','') rep=rep.replace('<b>','') post=re.findall(r'\<strong\>.*?\</strong\> \(',antichat) post=str(post)[2:-2] post=post.replace('<strong>','') post=post.replace('</strong> (','') reg=re.findall(': \<strong\>.*?200.*?\</strong\>',antichat) reg=str(reg)[2:-2] reg=reg.replace(': <strong>','') reg=reg.replace('</strong>','') print '\nnick: ' + nick print 'reputation: ' + rep[1:-1] print 'posts: ' + post print 'registration: ' + reg