{"id":18887485,"url":"https://github.com/pdrb/ip2geo","last_synced_at":"2026-03-13T23:32:22.864Z","repository":{"id":57438016,"uuid":"115219849","full_name":"pdrb/ip2geo","owner":"pdrb","description":"Get geolocation from IP address or hostname.","archived":false,"fork":false,"pushed_at":"2020-04-24T01:57:58.000Z","size":10,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T10:44:27.575Z","etag":null,"topics":["freegeoip","geo","geolocation","ip","ip-api","ipinfo"],"latest_commit_sha":null,"homepage":"","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/pdrb.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-23T20:22:51.000Z","updated_at":"2024-10-28T00:52:57.000Z","dependencies_parsed_at":"2022-09-04T18:21:38.431Z","dependency_job_id":null,"html_url":"https://github.com/pdrb/ip2geo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pdrb/ip2geo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Fip2geo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Fip2geo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Fip2geo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Fip2geo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdrb","download_url":"https://codeload.github.com/pdrb/ip2geo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Fip2geo/sbom","scorecard":{"id":725590,"data":{"date":"2025-08-11","repo":{"name":"github.com/pdrb/ip2geo","commit":"b3e940c0b518696983d4a4bcbca5dc98faa5fe19"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T12:42:18.547Z","repository_id":57438016,"created_at":"2025-08-22T12:42:18.547Z","updated_at":"2025-08-22T12:42:18.547Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30479366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T20:45:58.186Z","status":"ssl_error","status_checked_at":"2026-03-13T20:45:20.133Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["freegeoip","geo","geolocation","ip","ip-api","ipinfo"],"created_at":"2024-11-08T07:38:01.540Z","updated_at":"2026-03-13T23:32:22.831Z","avatar_url":"https://github.com/pdrb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"|Downloads|\n\nip2geo\n======\n\nGet geolocation information from IP address or hostname. Uses: 'ip-api.com',\n'freegeoip.net', 'ipinfo.io' or 'coding.tools'. Can also do a local lookup using\n`DB-IP.com \u003chttps://db-ip.com/\u003e`_ `IP to City Lite \u003chttps://db-ip.com/db/download/ip-to-city-lite\u003e`_ MMDB Database.\n\nSimple example::\n\n    $ ip2geo 8.8.8.8\n    8.8.8.8 - United States (US), California (CA), Mountain View - Google\n\nLocal lookup::\n\n    $ ip2geo 8.8.8.8 -d dbip-city-lite.mmdb\n    8.8.8.8 - United States (US), New Jersey, Newark\n\nPlease note the following:\n\n- http://ip-api.com/ (default) has a 45 requests per minute restriction\n\nThe script by default will sleep 1.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'. The sleep time can be changed using the '-s' switch.\n\n\nNotes\n=====\n\n- Works on Python 2 and Python 3\n- Uses only Python standard library for remote lookup\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\nFor local lookup the maxminddb module is needed::\n\n    pip install maxminddb\n\n\nUsage\n=====\n\n::\n\n    Usage: ip2geo.py [ip|hostname] [options]\n\n    get geolocation from IP address or hostname, can use: 'ip-api.com',\n    'freegeoip.net', 'ipinfo.io', 'coding.tools' or 'db-ip.com' ip to city lite\n    database for local lookup\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', 'ipinfo' or\n                          'coding'(default: ipapi)\n        -s SLEEP          time to sleep between http requests (default: 1.5)\n        -t TIMEOUT        timeout in seconds to wait for reply (default: 5)\n        -d DATABASE_FILE  local lookup using db-ip.com ip to city lite database\n                          mmdb: https://db-ip.com/db/download/ip-to-city-lite, the\n                          maxminddb module must be installed:\n                          https://github.com/maxmind/MaxMind-DB-Reader-python\n        -i INPUT_FILE     use ips/hostnames from input file (one ip/hostname per\n                          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 'coding.tools' api::\n\n    $ ip2geo google.com -g coding\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\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdrb%2Fip2geo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdrb%2Fip2geo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdrb%2Fip2geo/lists"}