{ "info": { "author": "Tim Savannah", "author_email": "kata198@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: HTML" ], "description": "SimpleHttpFetch\n===============\n\nSimpleHttpFetch supports through the most simple interface possible fetching of URLs as strings or JSON as dict\n\n\nIt supports both HTTP and HTTPS through the same interface. \nIt will automatically follow 301 redirects and Location headers, you do not have to worry about handling that.\n\nFetching the contents of a URL could not be simpler!!!\n\n\n**Example Usage**\n\n\nFetch google.com over HTTPS and return contents as a string:\n\n\timport SimpleHttpFetch\n\n\n\tcontents = SimpleHttpFetch.fetchUrl('https://www.google.com')\n\n\nThat's it!!!\n\n\nYou can also convert a page that returns JSON into a dictonary with a single call as well!\n\n\nFetch a servlet that returns JSON from example.com over HTTP, and convert to a python dictionary:\n\n\timport SimpleHttpFetch\n\n\n\tjsonContents = SimpleHttpFetch.fetchUrlAsJson('http://www.example.com/myJsonServlet?username=myuser')\n\n\nSo simple!\n\nFetch the linux kernel, do not try to decode into text.:\n\n\timport SimpleHttpFetch\n\n\n\tkernel = SimpleHttpFetch.fetchUrlRaw('https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.1.tar.xz')\n\n\n\nEncodings\n---------\n\nSimpleHttpFetch 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. \n\n\n**Binary Data**\n\nTo fetch binary data, use the \"fetchUrlRaw\" method, or pass \"nodecode\" as the \"defaultEncoding\" paramater. Use this mode to fetch images, video, tarballs, etc.\n\nExtra Headers\n-------------\n\nThe automatic headers needed for an HTTP/HTTPS request are provided by default, but you may override or provide your own headers through the \"headers\" parameter to most functions.\n\n\nFull Documentation\n------------------\n\n\nFull 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 .", "description_content_type": null, "docs_url": "https://pythonhosted.org/SimpleHttpFetch/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kata198/SimpleHttpFetch", "keywords": "fetch,url,GET,http,html,https,string,json,dict,as,simple,easy,basic,request,method,str,fetchUrl,fetchUrlAsJson,redirect,301,absolute,relative", "license": "LGPLv2", "maintainer": null, "maintainer_email": null, "name": "SimpleHttpFetch", "package_url": "https://pypi.org/project/SimpleHttpFetch/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/SimpleHttpFetch/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/kata198/SimpleHttpFetch" }, "release_url": "https://pypi.org/project/SimpleHttpFetch/4.0.0/", "requires_dist": null, "requires_python": null, "summary": "Python module that will, in a single line, fetch an http/https url and return a string or dictionary (JSON)", "version": "4.0.0" }, "last_serial": 2039177, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "4531c8f394da5fb544a28f90a7feef23", "sha256": "e8e3dd484b33c3f40bc415f846c264d9c50924fc2e26e8fd2e5e8364bd53f441" }, "downloads": -1, "filename": "SimpleHttpFetch-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4531c8f394da5fb544a28f90a7feef23", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13334, "upload_time": "2015-09-21T21:06:14", "url": "https://files.pythonhosted.org/packages/da/7d/983f4744ea3268e6f8ab81fd10d2806df98dafc606b9466c87f867a3e141/SimpleHttpFetch-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "300112de436701d9ece7efd184934166", "sha256": "90a4b871352da1d6001f6319f0ac4595ab3dc185b98d8ca38da2e8e9d1552624" }, "downloads": -1, "filename": "SimpleHttpFetch-1.0.1.tar.gz", "has_sig": false, "md5_digest": "300112de436701d9ece7efd184934166", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13397, "upload_time": "2015-10-19T16:45:09", "url": "https://files.pythonhosted.org/packages/7c/e9/6be7ac3b0697a97a50a9290b097faba659d88ca782c226a710064f1eb888/SimpleHttpFetch-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "3eaa6dcfdd641a51756dd3ac175c0d63", "sha256": "a344a09525a9e2263764fd260885b6966f845162c614ebf1e38c31add5cdb1d1" }, "downloads": -1, "filename": "SimpleHttpFetch-1.1.0.tar.gz", "has_sig": false, "md5_digest": "3eaa6dcfdd641a51756dd3ac175c0d63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13394, "upload_time": "2015-10-19T21:13:50", "url": "https://files.pythonhosted.org/packages/f7/e2/2e3414ff5026ea648760dae520bf616984a0bbc951d4f9eade4789372210/SimpleHttpFetch-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "80472a80e91c593d29a669b23bfad8a3", "sha256": "edca56f977cb735f6d31baba607bd9babed840b0d628646270dad9c8f5f80aaf" }, "downloads": -1, "filename": "SimpleHttpFetch-1.1.1.tar.gz", "has_sig": false, "md5_digest": "80472a80e91c593d29a669b23bfad8a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13411, "upload_time": "2015-10-19T21:35:29", "url": "https://files.pythonhosted.org/packages/cc/13/82699b587a8fd7f38f5f0b53e149c7fc2dab5710e6c612f2bf39eb9c819a/SimpleHttpFetch-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "e86c678d8711427cd64805fdd6e655b1", "sha256": "104bcf7283fe3bc67876ceafd2e37d9c6e53dc303d0ba8b56afbefd52ae59bf4" }, "downloads": -1, "filename": "SimpleHttpFetch-1.1.2.tar.gz", "has_sig": false, "md5_digest": "e86c678d8711427cd64805fdd6e655b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13372, "upload_time": "2016-02-10T02:59:59", "url": "https://files.pythonhosted.org/packages/9c/d6/e777157d76b41e488ddb8d44540c56441d9f06c9ef78a50aea1954d7cd2a/SimpleHttpFetch-1.1.2.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "062569c6521c94aa67a7dbbb3698ceee", "sha256": "f4bac1d62ddec9dbf227c5b26b56f9626ce33065aea72e64de7fb2bb90502cf8" }, "downloads": -1, "filename": "SimpleHttpFetch-2.0.0.tar.gz", "has_sig": false, "md5_digest": "062569c6521c94aa67a7dbbb3698ceee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25834, "upload_time": "2016-02-10T18:39:46", "url": "https://files.pythonhosted.org/packages/d5/85/30fc7a70f5c9ca9c55237ddf22ae81434d85cca9170194a673d36b195663/SimpleHttpFetch-2.0.0.tar.gz" } ], "3.0.0": [ { "comment_text": "", "digests": { "md5": "e8aeb38c1f68e1afb6d2af4e3d33b860", "sha256": "4a45302f4321a3b80e8daa39ef542997aab5a6e9833b3a9881f3121bf796d5fc" }, "downloads": -1, "filename": "SimpleHttpFetch-3.0.0.tar.gz", "has_sig": false, "md5_digest": "e8aeb38c1f68e1afb6d2af4e3d33b860", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26098, "upload_time": "2016-03-11T19:03:53", "url": "https://files.pythonhosted.org/packages/05/5b/b4cedb4cf1996995adfb03987ca5e26f6fbd13bacc47437e4fefd176331e/SimpleHttpFetch-3.0.0.tar.gz" } ], "4.0.0": [ { "comment_text": "", "digests": { "md5": "fa46ca22e456588b2f1d9b516ef46849", "sha256": "6710bf384f213af4e66bcd88444cdfac2196e989ac0531fc4025bd9bb8454392" }, "downloads": -1, "filename": "SimpleHttpFetch-4.0.0.tar.gz", "has_sig": false, "md5_digest": "fa46ca22e456588b2f1d9b516ef46849", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26896, "upload_time": "2016-03-31T23:06:42", "url": "https://files.pythonhosted.org/packages/1a/b3/eec7389266c94b5f80e2d94513933a3595b75562d478285f731486d08ca0/SimpleHttpFetch-4.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fa46ca22e456588b2f1d9b516ef46849", "sha256": "6710bf384f213af4e66bcd88444cdfac2196e989ac0531fc4025bd9bb8454392" }, "downloads": -1, "filename": "SimpleHttpFetch-4.0.0.tar.gz", "has_sig": false, "md5_digest": "fa46ca22e456588b2f1d9b516ef46849", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26896, "upload_time": "2016-03-31T23:06:42", "url": "https://files.pythonhosted.org/packages/1a/b3/eec7389266c94b5f80e2d94513933a3595b75562d478285f731486d08ca0/SimpleHttpFetch-4.0.0.tar.gz" } ] }