diff options
-rw-r--r-- | eteutils/HTTPUtils.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/eteutils/HTTPUtils.py b/eteutils/HTTPUtils.py index bca6b61..0747ec9 100644 --- a/eteutils/HTTPUtils.py +++ b/eteutils/HTTPUtils.py @@ -1,5 +1,6 @@ import urllib from requests.packages import urllib3 +from urlparse import urlparse class HTTPUtils: """HTTPUtils is common resource for simple http helper keywords.""" @@ -10,4 +11,8 @@ class HTTPUtils: def disable_warnings(self): """ Disable the cert warnings when creating sessions for A&AI API Calls """ - urllib3.disable_warnings()
\ No newline at end of file + urllib3.disable_warnings() + + def url_parse(self, url): + """ Get pieces of the URL """ + return urlparse(url)
\ No newline at end of file |