#!/usr/bin/python import urllib, re def get_category_listings(url): contents = urllib.urlopen(url).read() matches = re.findall('top members', contents) return matches def get_user_listings(url): contents = urllib.urlopen(url).read() matches = re.findall('[0-9]+-[0-9]+', contents) if len(matches) > 0: matches.pop(0) return matches def get_users(url): contents = urllib.urlopen(url).read() matches = re.findall('http:\/\/community\.webshots\.com\/user\/([^/\'"]+)', contents) return [value for value in matches if value != "my"]