Added new function to http library

This commit is contained in:
Luke Rogers 2011-12-01 01:50:28 +13:00
parent 385f0b4b5e
commit 63d1f144b9

View file

@ -27,6 +27,9 @@ def get(*args, **kwargs):
return open(*args, **kwargs).read()
def get_url(*args, **kwargs):
return open(*args, **kwargs).geturl()
def get_html(*args, **kwargs):
return html.fromstring(get(*args, **kwargs))