{"id":21945877,"url":"https://github.com/ip2location/ip2location-lookup-py","last_synced_at":"2025-04-22T21:26:55.067Z","repository":{"id":76794722,"uuid":"421988397","full_name":"ip2location/ip2location-lookup-py","owner":"ip2location","description":"A free standalone software that enables end-users to detect country, region, city, latitude, longitude, ZIP code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, MCC, MNC, mobile brand name, elevation, usage type, address type and IAB category by using an IP address.","archived":false,"fork":false,"pushed_at":"2024-10-04T05:02:42.000Z","size":35,"stargazers_count":18,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-18T21:16:49.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ip2location.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-10-27T22:12:36.000Z","updated_at":"2025-03-26T11:18:43.000Z","dependencies_parsed_at":"2024-01-03T01:52:53.719Z","dependency_job_id":"f8593eea-354c-43cd-8c95-3f3870cf5904","html_url":"https://github.com/ip2location/ip2location-lookup-py","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2location-lookup-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2location-lookup-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2location-lookup-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2location-lookup-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ip2location","download_url":"https://codeload.github.com/ip2location/ip2location-lookup-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250326979,"owners_count":21412357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T04:19:58.118Z","updated_at":"2025-04-22T21:26:55.048Z","avatar_url":"https://github.com/ip2location.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IP2Locationpy\r\n\r\nIP2Locationpy is a Python tool allowing user to get IP address information such as country, region, city, latitude, longitude, zip code, time zone, ISP, domain name, connection type, area code, weather, mobile network, elevation, usage type, address type, IAB category, district, autonomous system number (ASN) and autonomous system (AS) by IP address (IPv4 or IPv6) from IP2Location BIN database.\r\n\r\nFor more details, please visit:\r\nhttps://www.ip2location.com/free/applications\r\n\r\n### Installation\r\n\r\nYou can install this tool by using pip in Windows or Linux. To install this tool in Windows and Linux, just type `pip install IP2Locationpy` in your console and IP2Location-Lookup will be installed in your machine.\r\n\r\n*Note: This tool require [IP2Location](https://github.com/chrislim2888/IP2Location-Python) library to work with. If pip did not install the dependency for you, you can manually install it by using `pip install IP2Location`.*\r\n\r\n### Usage\r\n\r\nQuery an IP address and display the result\r\n\r\n```\r\nip2locationpy -d [IP2LOCATION BIN DATA PATH] --ip [IP ADDRESS]  \r\n```\r\n\r\nQuery all IP addresses from an input file and display the result\r\n\r\n```\r\nip2locationpy -d [IP2LOCATION BIN DATA PATH] -i [INPUT FILE PATH]  \r\n```\r\n\r\nQuery all IP addresses from an input file and display the result in XML format\r\n\r\n```\r\nip2locationpy -d [IP2LOCATION BIN DATA PATH] -i [INPUT FILE PATH] --format XML  \r\n```\r\n\r\n## Download More Sample Databases\r\n\r\n```\r\nwget https://www.ip2location.com/downloads/sample.bin.db26.zip\r\nunzip samples-db26.zip\r\n```\r\n\r\n## Support\r\n\r\nEmail: [support@ip2location.com](mailto:support@ip2location.com)\r\nURL: [https://www.ip2location.com](https://www.ip2location.com/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fip2location-lookup-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fip2location%2Fip2location-lookup-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fip2location-lookup-py/lists"}