Skip to content

Details on South Dakota Legislature sessions, bills, legislators and committees since 1997.

License

Notifications You must be signed in to change notification settings

cjwinchester/south-dakota-legislature-data

Repository files navigation

South Dakota Legislature data archive

This repo has data files sourced from the South Dakota Legislature website with information on sessions, bills, legislators, committees, subcommittees, votes, audio files, documents, etc., from 1997 to present.

Updated March 31, 2024

The data

Sessions (40)

JSON files with details about each session, slugged by session ID, live in data/sessions.

See also crawler/session-dates.json, a file I made with the start and end dates for each legislative session.

Bills (16,525)

JSON files with details about each bill, slugged by bill ID and including full text of each version and data on votes, live in data/bills.

Legislator Profiles (4,225)

JSON files with details about each legislator profile, slugged by the legislator's session profile ID, live in data/legislators. This is data on a legislator's profile during a particular session; legislators who serve for more than one session are represented in more than one file.

See also data/legislators/legislators-historical.json, which pulls data from the canonical "Historical Listing" page for legislators, and crawler/sd-legislator-xwalk.csv, a file I made to map each legislator session profile ID to that legislator's canonical record. (The value attached to the legislator_canonical_id key in each JSON file is derived from this lookup.)

Committees (1,014)

JSON files with details about each committee, slugged by committee ID, live in data/committees.

Running the crawler

Object classes -- Session Bill, LegislatorProfile and Committee -- are defined in crawler/models.py.

The code to crawl each session and conditionally write data to file is in main.py. (Only new data, or data about the current session, is written to file.)

To run the script, you'll first need to install two dependencies, requests and bs4, into a virtual environment using your favorite dependency management tools.

About

Details on South Dakota Legislature sessions, bills, legislators and committees since 1997.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages