Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 526 Bytes

File metadata and controls

28 lines (18 loc) · 526 Bytes

GEONAMES SCRIPT

Geonames.scripts is a list of python scripts to handle geonames database dumps and make them usable and readable.

Installation

You'll need pandas to use most scripts.

pip install pandas

Usage

cd /scripts/

# geonames_to_json accepts 2 paramaters: input txt file and output json file (created if not existent)
python geonames_to_json NL.txt test.json

Utilities

To prettify a heavy JSON, you can run:

type starting.json | python -mjson.tool > ending.json