$ apt-get install -y geoip-database
$ pip install python-dateutil pygeoip
We are going to parse the navigator data to obtain the language, browser, operative system, screen resolution, density of pixels of the screen and a boolean to define if the user is using a touch device. This data will be POSTed to be analyzed and stored (in this example in the path
Server-side geo data
You will need to download the GeoLite City database in your application data root (defined as
The Python code:
Originally published at blog.mmast.net on February 11, 2015.