UNDP Climate Change Data Collector
HDX collector for UNDP Climate Change Data.
This collector operates in the following way:
climate
tableWith hdxscraper-undp-climate, you can
hdxscraper-undp-climate has been tested on the following configuration:
hdxscraper-undp-climate requires the following in order to run properly:
local
(You are using a virtualenv, right?)
git clone https://github.com/reubano/hdxscraper-undp-climate.git
pip install -r requirements.txt
manage setup
ScraperWiki Box
rm -rf tool
git clone https://github.com/reubano/hdxscraper-undp-climate.git tool
cd tool
make setup
local
manage run
ScraperWiki Box
source venv/bin/activate
screen manage -m Scraper run
Now press `Ctrl-a d`
The results will be stored in a SQLite database scraperwiki.sqlite
.
upload to production site
manage upload
upload to staging site
manage upload -s
update dataset on production site
manage update
update dataset on staging site
manage update -s
cd tool
make update
source venv/bin/activate
screen manage -m Scraper run
# Now press `Ctrl-a d`
hdxscraper-undp-climate will use the following Environment Variables if set:
Environment Variable | Description |
---|---|
CKAN_API_KEY | Your CKAN API Key |
CKAN_PROD_URL | Your CKAN instance remote production url |
CKAN_REMOTE_URL | Your CKAN instance remote staging url |
CKAN_USER_AGENT | Your user agent |
If you would like to create collector or scraper from scratch, check out cookiecutter-collector.
pip install cookiecutter
cookiecutter https://github.com/reubano/cookiecutter-collector.git
hdxscraper-undp-climate is distributed under the MIT License.