Giter VIP home page Giter VIP logo

dante-signal31 / geolocate Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 967 KB

This program accepts any text and searchs inside every IP address. With each of those IP addresses, geolocate queries Maxmind GeoIP database to look for the city and country where IP address or URL is located. Geolocate is designed to be used in console with pipes and redirections along with applications like traceroute, nslookup, etc.

License: BSD 3-Clause "New" or "Revised" License

Python 93.89% Shell 0.53% Makefile 5.58%

geolocate's Introduction

geolocate

This program accepts any text and searchs inside every IP address. With each of those IP addresses, geolocate queries Maxmind GeoIP database to look for the city and country where IP or URL is located.

Geolocate is designed to be used in console with pipes and redirections along with applications like traceroute, etc.

Geolocate's output is the same text than input but each IP address is going to have appended its country, city and long-lat coordinates (depending on verbosity level).

Geolocate depends on several system packages to run, so be sure to check installations instructions to get those dependencies installed.

See wiki for more detailed info.

Author: Dante Signal31 e-mail: [email protected]

News

  • 2017-07-11: Geolocate version 1.4.0 release. Maxmind license_key is now stored ciphered in system keyring.
  • 2015-06-28: Geolocate version 1.2.3 release. Interpreter version check now runs when geolocate is run from an installed pypi package.
  • 2015-06-26: Geolocate version 1.2.2 released. Geolocate now warns user and exits gracefully if it detects it is being run on a Python 2.x interpreter.
  • 2015-05-03: Geolocate version 1.2.1 released. Setup.py description had an incorrect homepage url, now it is fixed.
  • 2015-05-03: Geolocate version 1.2.0 released. Now geolocate includes its own gzip decompressor, so its no longer needed as an external dependency.
  • 2015-04-10: Geolocate version 1.1.0 released. Now geolocate includes its own downloader, so its no longer needed as an external dependency.
  • 2015-03-14: Geolocate version 1.0.0 released.

geolocate's People

Contributors

dante-signal31 avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

kayodebristol

geolocate's Issues

cant run it under router

/opt/home/admin # pip install glocate
Collecting glocate
Downloading glocate-1.2.1.tar.gz
Collecting geoip2>=2.1.0 (from glocate)
Using cached geoip2-2.1.0-py2.py3-none-any.whl
Collecting maxminddb>=1.1.1 (from glocate)
Using cached maxminddb-1.2.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): requests>=2.5.0 in /opt/lib/python2.7/site-packages (from glocate)
Collecting wget>=2.2 (from glocate)
Downloading wget-2.2.tar.gz
Collecting ipaddr (from maxminddb>=1.1.1->glocate)
Using cached ipaddr-2.1.11.tar.gz
Installing collected packages: ipaddr, maxminddb, geoip2, wget, glocate
Running setup.py install for ipaddr
Running setup.py install for maxminddb
Running setup.py install for wget
Running setup.py install for glocate
Successfully installed geoip2-2.1.0 glocate-1.2.1 ipaddr-2.1.11 maxminddb-1.2.0 wget-2.2

/opt/home/admin # geolocate --help
Traceback (most recent call last):
File "/opt/bin/geolocate", line 9, in
load_entry_point('glocate==1.2.1', 'console_scripts', 'geolocate')()
File "/opt/lib/python2.7/site-packages/setuptools-16.0-py2.7.egg/pkg_resources/init.py", line 552, in load_entry_point
File "/opt/lib/python2.7/site-packages/setuptools-16.0-py2.7.egg/pkg_resources/init.py", line 2672, in load_entry_point
File "/opt/lib/python2.7/site-packages/setuptools-16.0-py2.7.egg/pkg_resources/init.py", line 2345, in load
File "/opt/lib/python2.7/site-packages/setuptools-16.0-py2.7.egg/pkg_resources/init.py", line 2351, in resolve
File "/opt/lib/python2.7/site-packages/geolocate/glocate.py", line 26
print(line, end="")
^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.