Skip to content

techequitycollaborative/ca-leg-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

230 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ca-leg-tracker

This repository contains data ingestion scripts for TechEquity's CA Legislation Tracker, sourcing from California LegInfo via the OpenStates API, as well as CA Senate and Assembly daily file websites.

database-population

Scripts in this folder handle database population from external sources (anything not created by a tool user). Database population relies on configuration of a developer's credentials (see below). These credentials are ingested by config.py which is called by both *_fetch.py scripts. The results of the fetching scripts are used by one or more *_update.py scripts.

Data that can't be sourced through OpenStates will be scraped by the relevant *_scraper.py or *_parser.py file.

database-scripts

Scripts in this folder generate the postgreSQL schemas and tables as the back-end of a legislation tracker. ⚠️ This folder is no longer under active development; see db folder in this repository instead for the latest database architecture. ⚠️

Credentials

Locally configure a credentials.ini file. For example:

[openstates]
api_key = **********

[postgresql]
user = *********
password = *********
host = *********.db.ondigitalocean.com
port = *********
dbname = *********
sslmode = require

[postgresql_schemas]
openstates_schema = *******
legtracker_schema = *****
frontend_user = ******
backend_user = ******

This will be parsed by config.py which enables access to the pSQL and OpenStates APIs.

About

Early version of a web app to track California legislation. No longer under active development by the TechEquity team.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors