#!/usr/bin/env python # -*- coding: utf-8 -*- from twill.commands import go, fv, submit, code, show, find import re, time, os.path site = 'http://xwen.ru/' go (site+'pages/userlist.php') code("200") html = show() userlist = re.findall(r'pages\/anketa\.php\?uz=(.*?)&', html) pages = re.findall(r'start=(.*?)&', html) maxPage = (int(max(pages))+10)/10 countPages =(int(pages[maxPage])+10)/10 i=1 while i