import urllib2 import re import scraperwiki import datetime import lxml.html import hotshot ipextract = re.compile('rtmp://(?P[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+):443/tinyconf') def getrooms(n): ## Get list of tinychat room names from page n of the public listing response = urllib2.urlopen("http://tinychat.com/channel?frame=true&page=" + n) html = response.read() ## Method 1 of extracting room names, using the string find function #x = 0 #i1 = 0 #i2 = 0 #x = html.find('picwrapper') #while x > -1 and i1 > -1 and i2 > -1: # i1 = html.find("Live\n