No project description provided
Project description
Simple cli client for ja.is
Personal tool that is probably not useful for anyone else
Install
pip install jais-search
Play around
Start by exporting your api token
export JAIS_API_KEY=your-token
Alternatively you can always pass it as an argument to each command, but that's just boring
jais search --token your-token -n "some company name"
Only one command is available, that is search
, but comes with multiple search filter options.
jais search --help
Search examples
jais search -n "Banana"
jais search -p 105 # postal code
jais search -s Suðurlandsbraut # street
jais search -m Reykjavík # municipality
jais search -b E1 # business type, I have no idea what codes are available.
Or just pass them all in if you want
jais search -n "Banana" -p 105 -s Suðurlandsbraut -m Reykjavík municipality -b E1
It will store results in test.csv
, until I make it configurable and fix the dict serialization.
The https://ja.is api paginates the data so you have to pass in --start [default: 1]
and --count [default: 1000]
, but it comes with defaults.
# Get me 50 records and start at record 1000
jais search -n "Banana" --start 1000 --count 50
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jais_search-0.1.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for jais_search-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f9357bf3404a7a2785edeac8e2ed4c8496283d3bc714b477575e481fdb32d14 |
|
MD5 | 9b9b72147a46707d7091772ae97339a8 |
|
BLAKE2b-256 | 24fd973970a70806aae2a8a2058bd41cb64950240a4073ab65140fa8d00d4e39 |