Scripts to auto populate the Open Council Data map at https://stevage1.cartodb.com/viz/ac41a874-7b34-11e4-ac15-0e4fddd5de28/map
Branch: master
Clone or download
Pull request Compare This branch is even with OKFNau:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
update-cartodb.py

README.md

Open council data map updater

Updates dataset counts in Open Council Data map, using CKAN and CartoDB APIs.

Result: https://stevage.cartodb.com/viz/43494ef2-61f3-11e5-a667-0e4fddd5de28/public_map

See also: opencouncildata.org

Written by Steve Bennett, melbdataguru.tumblr.com, stevebennett.me, @stevage1 License: CC-BY AU 3.0

Install

git clone https://github.com/OKFNau/open-council-data-map

cd open-council-data-map

# Add your CartoDB API key: 
echo "cartodb_api_key = '123456...'" > settings.py
echo "cartodb_domain = 'stevage1'" >> settings.py

# Of course, that's all assuming you have a table called lga_datasets formatted just like mine.

pip install cartodb ckanapi

python update-cartodb.py