From 63d1f144b9f16b1189adbdd19e0ce51f7ede7d1d Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Thu, 1 Dec 2011 01:50:28 +1300 Subject: [PATCH] Added new function to http library --- plugins/util/http.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/util/http.py b/plugins/util/http.py index 9374bc7..fcfd6d0 100644 --- a/plugins/util/http.py +++ b/plugins/util/http.py @@ -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))