Adapted from https://github.com/openstates/openstates-scrapers.
This assumes Docker is installed and running. See the OpenStates getting started guide.
npm run scrape
Writes to _cache
and _data
folders (left untracked by version control).
If you have done a local scrape before, this script will create a temporary cache in _cached_votes
of any vote events
from your last scrape to avoid requesting and parsing the same vote events again. After a full scrape, this folder will be deleted.
npm run scrape-no-cache
will ignore your previous scraped vote events and run a full scrape without using the cache.
Once you run this, you can't get your previously scraped vote events back again.