Added new function to http library
This commit is contained in:
parent
385f0b4b5e
commit
63d1f144b9
|
@ -27,6 +27,9 @@ def get(*args, **kwargs):
|
||||||
return open(*args, **kwargs).read()
|
return open(*args, **kwargs).read()
|
||||||
|
|
||||||
|
|
||||||
|
def get_url(*args, **kwargs):
|
||||||
|
return open(*args, **kwargs).geturl()
|
||||||
|
|
||||||
def get_html(*args, **kwargs):
|
def get_html(*args, **kwargs):
|
||||||
return html.fromstring(get(*args, **kwargs))
|
return html.fromstring(get(*args, **kwargs))
|
||||||
|
|
||||||
|
|
Reference in a new issue