{ "info": { "author": "Pedro Buteri Gonring", "author_email": "pedro@bigode.net", "bugtrack_url": null, "classifiers": [], "description": "|Downloads|\n\nip2geo\n======\n\nGet geolocation information from IP address or hostname. Uses: 'ip-api.com',\n'freegeoip.net' or 'ipinfo.io'.\n\nSimple example::\n\n $ ip2geo 8.8.8.8\n 8.8.8.8 - United States (US), California (CA), Mountain View - Google\n\nPlease note the following:\n\n- http://ip-api.com/ (default) has a 150 requests per minute restriction\n- http://freegeoip.net/ has a 15,000 requests per hour restriction\n- https://ipinfo.io/ has a 1,000 requests per day restriction\n\nThe script by default will pause 0.5s between each request when doing multiple\nlookups using an input file. This is done to comply to the restrictions on\n'ip-api.com' and 'freegeoip.net'. Just be careful when using 'ipinfo.io'.\n\n\nNotes\n=====\n\n- Works on Python 2 and Python 3\n- Uses only Python standard library for maximum compatibility\n\n\nInstall\n=======\n\nInstall using pip::\n\n pip install ip2geo\n\nor\n\nDownload and set executable permission on the script file::\n\n chmod +x ip2geo.py\n\nor\n\nDownload and run using the python interpreter::\n\n python ip2geo.py\n\n\nUsage\n=====\n\n::\n\n Usage: ip2geo [ip|hostname] [options]\n\n get geolocation from IP address or hostname, can use: 'ip-api.com',\n 'freegeoip.net' or 'ipinfo.io'\n\n Options:\n --version show program's version number and exit\n -h, --help show this help message and exit\n -g API geolocation api to use: 'ipapi', 'freegeoip' or\n 'ipinfo'(default: ipapi)\n -s SLEEP time to sleep between requests (default: 0.5)\n -t TIMEOUT timeout in seconds to wait for reply (default: 5)\n -i INPUT_FILE use ips/hostnames from input file (one ip/hostname per line)\n -o OUTPUT_FILE save geolocation information to file\n\n\nExamples\n========\n\nGet geolocation from IP or hostname::\n\n $ ip2geo google.com\n\nGet geolocation using 'freegeoip.net' api::\n\n $ ip2geo google.com -g freegeoip\n\nUses an input file containing multiple ips/hostnames (one per line)::\n\n $ ip2geo -i ips.txt\n\nSave output to file::\n\n $ ip2geo -i ips.txt -o geo_info.txt\n\n\n.. |Downloads| image:: https://pepy.tech/badge/ip2geo", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pdrb/ip2geo", "keywords": "ip geo geolocation ip-api.com freegeoip.net ipinfo.io", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ip2geo", "package_url": "https://pypi.org/project/ip2geo/", "platform": "", "project_url": "https://pypi.org/project/ip2geo/", "project_urls": { "Homepage": "https://github.com/pdrb/ip2geo" }, "release_url": "https://pypi.org/project/ip2geo/0.3/", "requires_dist": null, "requires_python": "", "summary": "Get geolocation from IP address or hostname", "version": "0.3" }, "last_serial": 4678090, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "edb4af2d80819f5180dae577f741f8e7", "sha256": "257f419e02e963febaf7f99ba007ad0d6998c68b596ded6dcdbe21c0dfdd65f0" }, "downloads": -1, "filename": "ip2geo-0.1.tar.gz", "has_sig": false, "md5_digest": "edb4af2d80819f5180dae577f741f8e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4591, "upload_time": "2017-12-23T20:32:32", "url": "https://files.pythonhosted.org/packages/d8/a4/967e5249fb633bcc3879b6b3323f1efdfec45f7d8a50c163b684020e4108/ip2geo-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "839b2ad402037e259822d8ca1e3e8b76", "sha256": "c1c0b39b0a8ed31944358997e8e869c3067a1438883d3320fe73d9d9d5100a7f" }, "downloads": -1, "filename": "ip2geo-0.2.tar.gz", "has_sig": false, "md5_digest": "839b2ad402037e259822d8ca1e3e8b76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4599, "upload_time": "2017-12-23T23:46:27", "url": "https://files.pythonhosted.org/packages/89/15/4b503052bcc4d08d70bf7c94f9b661acb1ffae3a9a2f3f6292dbc1948814/ip2geo-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "a8516e3116be454a96cf4af4fcf0cc5a", "sha256": "8ce3e112575607108c702e53077fca32aea44474cf8520f981365691e8d929e8" }, "downloads": -1, "filename": "ip2geo-0.3.tar.gz", "has_sig": false, "md5_digest": "a8516e3116be454a96cf4af4fcf0cc5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4673, "upload_time": "2019-01-09T19:16:35", "url": "https://files.pythonhosted.org/packages/8c/99/1d0151df7cf4f8cebb9dfe69bab968549c1122e8073945714fa8e31d8c93/ip2geo-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a8516e3116be454a96cf4af4fcf0cc5a", "sha256": "8ce3e112575607108c702e53077fca32aea44474cf8520f981365691e8d929e8" }, "downloads": -1, "filename": "ip2geo-0.3.tar.gz", "has_sig": false, "md5_digest": "a8516e3116be454a96cf4af4fcf0cc5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4673, "upload_time": "2019-01-09T19:16:35", "url": "https://files.pythonhosted.org/packages/8c/99/1d0151df7cf4f8cebb9dfe69bab968549c1122e8073945714fa8e31d8c93/ip2geo-0.3.tar.gz" } ] }