def commit(): request = common.url_request("http://whatthecommit.com") with common.urlopen(request) as s: content = s.read().decode('utf-8', 'replace') message = re.search(r'<p>(.+?)\n', content).group(1) return message
def wikipedia(args): request = common.url_request("http://h4xxel.org/failboat/wikipedia.php?nick=n&args=" + common.quote(args)) with common.urlopen(request) as s: content = s.read().decode('utf-8', 'replace') return content