Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 1.83 KB

README.md

File metadata and controls

68 lines (41 loc) · 1.83 KB

Files with Intended Nationally Determined Contributions (INDCs) and submission dates as provided by the UNFCCC secreteriat.

Data

INDCs are downloaded from the INDC portal.

Preparation

Click forward and back in the INDC portal to get a full list of submitted INDCs. The resulting full table needs to be manually saved from the Developer Tools. The saved HTML file is parsed to generate a CSV file with links and submissions dates. For convenience all INDCs and accompanying files are downloaded, converted to PDF (for .doc, .docx and .xps files) and renamed in the pdfs directory..

Python3 and the libraries in scripts/requirements.txt are used. A Virtualenv is created automatically in the Makefile.

Run

make

to download and generate a indcs.csv file and download the INDC files.

Requirements

A couple of Python libraries have further dependencies.

MacOS:

brew antiword icu4c libgxps poppler unrtf tesseract swig poppler

icu4c may require explicit linking:

brew link icu4c --force

To run LibreOffice from the command line a simple bash wrapper is required:

#!/bin/bash

~/Applications/LibreOffice.app/Contents/MacOS/soffice "$@"

On Debian/Ubuntu systems:

sudo apt install libgxps-utils libicu-dev libxml2-dev libxslt1-dev antiword \
                 unrtf poppler-utils pstotext tesseract-ocr flac ffmpeg lame \
                 libmad0 libsox-fmt-mp3 sox libjpeg-dev swig

Notes

Please refer to the INDC portal for updates of submissions.

License

The Python files in scripts are released under an CC0 Public Dedication License.