Metadata-Version: 1.1
Name: SimpleHttpFetch
Version: 2.0.0
Summary: Python module that will, in a single line, fetch an http/https url and return a string or dictionary (JSON)
Home-page: https://github.com/kata198/SimpleHttpFetch
Author: Tim Savannah
Author-email: kata198@gmail.com
License: LGPLv2
Description: SimpleHttpFetch
        ===============
        
        SimpleHttpFetch supports through the most simple interface possible fetching of URLs as strings or JSON as dict
        
        
        It supports both HTTP and HTTPS through the same interface. 
        It will automatically follow 301 redirects and Location headers, you do not have to worry about handling that.
        
        Fetching the contents of a URL could not be simpler!!!
        
        
        **Example Usage**
        
        
        Fetch google.com over HTTPS and return contents as a string:
        
        	import SimpleHttpFetch
        
        
        	contents = SimpleHttpFetch.fetchUrl('https://www.google.com')
        
        
        That's it!!!
        
        
        You can also convert a page that returns JSON into a dictonary with a single call as well!
        
        
        Fetch a servlet that returns JSON from example.com over HTTP, and convert to a python dictionary:
        
        	import SimpleHttpFetch
        
        
        	jsonContents = SimpleHttpFetch.fetchUrlAsJson('http://www.example.com/myJsonServlet?username=myuser')
        
        
        So simple!
        
        Fetch the linux kernel, do not try to decode into text.:
        
        	import SimpleHttpFetch
        
        
        	kernel = SimpleHttpFetch.fetchUrlRaw('https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.1.tar.xz')
        
        
        
        Encodings
        ---------
        
        SimpleHttpFetch will check for the "charset" defined in Content-type header, and use that as the encoding. If that is not found, it will use the "defaultEncoding" param, which defaults to utf-8. 
        
        
        **Binary Data**
        
        To fetch binary data, use the "fetchUrlRaw" method, or pass "nodecode" as the "defaultEncoding" paramater. Use this mode to fetch images, video, tarballs, etc.
        
        
        
        Full Documentation
        ------------------
        
        
        Full documentation on other methods and arguments can be found here: http://htmlpreview.github.io/?https://github.com/kata198/SimpleHttpFetch/blob/master/doc/SimpleHttpFetch.html?vers=2 .
        
Keywords: fetch,url,GET,http,html,https,string,json,dict,as,simple,easy,basic,request,method,str,fetchUrl,fetchUrlAsJson,redirect
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Text Processing :: Markup :: HTML
Classifier: Topic :: Software Development :: Libraries :: Python Modules
