
04.03.2009, 01:27
|
|
Banned
Регистрация: 06.01.2008
Сообщений: 904
Провел на форуме: 4037638
Репутация:
1821
|
|
Сообщение от faza02
Код:
#!/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
дело было вечером, делать было нечего..))
ник, репу, посты и регу выводит, нужного вам юзера на ачате..
Многовато операций...
|
|
|