Skip to content

cyl337/budget-explorer

 
 

Repository files navigation

budget-explorer

###Workflow Overview

  1. Retrieve Budget Estimates PDF files from government budget website
  2. Convert PDF to text files by running Shell script convert.sh (PDF -> TXT)
  3. Extract figures in text files into CSV files by running python script parse.py (TXT -> CSV)
  4. Upload CSV file to Google Spreadsheet and cleanse the data
  5. Export the data as JSON by Google Spreadsheet JSON API
  6. Import JSON Data into Elastic Search Engine

Chinese PDFs used for processing

  1. convert_batch.sh 021 will download the PDFs for head 021 (CEO Office) and parse them

Download Data (refer to https://code4hk.hackpad.com/CODE4HK-Budget-Hackathon-4Sgfyk51g5m) and extract to raw/csv/

Env Setup

cd docker-host-vm vagrant up

cd .. vagrant up --provider=docker

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.9%
  • CSS 27.9%
  • Other 0.2%