Himachal Pradesh Fiscal Data explorer for Open Budgets India Platform.
git clone https://github.com/CivicDataLab/hp-fiscal-data-explorer.gitpip install pipenvcd scrapercp scraper/settings/settings.py scraper/settings/local.pypipenv install --three --ignore-pipfilecp scraper/settings/settings.py scraper/settings/local.py- Edit the
scraper/settings/local.pywith setting values you want to keep likeDOWNLOAD_DELAY,CONCURRENT_REQUESTSand custom settings likeDATASETS_PATHetc. - create a
datasetsdirectory at the path specified byDATASET_PATHvariable. e.g.hp-fiscal-data-explorer/scraper/datasetsif you didn't update the default value of the variableDATASET_PATH.
. $(pipenv --venv)/bin/activate
scrapy crawl ddo_collector
For Treasury Expenditure.
scrapy crawl treasury_expenditures -a start=20190501 -a end=20190531
For Treasury Receipts.
scrapy crawl treasury_receipts -a start=20190501 -a end=20190531
For Budget Expenditure.
scrapy crawl budget_expenditures -a date=20190531
NOTES:
- the arguments
startandendspecifies the date range for datasets. The date format isyyyymmdd. - the datasets will be
CSVfiles with name in the format:treasury_expenditures_<treasury>_<ddo>_<timestamp>.csvfor expenditures.