https://github.com/areed1192/united-states-congress-python-api
A Python API client for the United States Congressional data found GovInfo.com.
https://github.com/areed1192/united-states-congress-python-api
api api-client congress govinfo python united-states
Last synced: 4 months ago
JSON representation
A Python API client for the United States Congressional data found GovInfo.com.
- Host: GitHub
- URL: https://github.com/areed1192/united-states-congress-python-api
- Owner: areed1192
- License: mit
- Created: 2020-08-13T03:20:38.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-13T19:09:25.000Z (almost 6 years ago)
- Last Synced: 2025-03-21T15:41:03.729Z (over 1 year ago)
- Topics: api, api-client, congress, govinfo, python, united-states
- Language: Python
- Homepage:
- Size: 94.7 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Python United Congress API Client
## Table of Contents
- [Overview](#overview)
- [Setup](#setup)
- [Usage](#usage)
- [Support These Projects](#support-these-projects)
## Overview
This is a python API client library that is used to collect data from the
United States Congress and a few other departments inside the US Government.
This library will make filtering the requests easier, and give you a nice easy
to use tool to grab vital civic data to be used in a wide range of analysis.
## Setup
To **install** the library, run the following command from the terminal.
```console
pip install united-states-congress-python-api
```
To **upgrade** the library, run the following command from the terminal.
```console
pip install --upgrade united-states-congress-python-api
```
## Usage
Here is a simple example of using the `congress` library to pull the bulk data
sources and grabbing a speicifc year of bulk data for the Privacy Act Issuances.
```python
from pprint import pprint
from congress.client import Congress
# Initialize the Congress Client.
congress_client = Congress()
# Grab the data sources.
data_sources = congress_client.data_sources()
pprint(data_sources)
# Grab the different resources from the Privacy Act Issuance.
pia_2017 = congress_client.privacy_act_issuances(folder='2017')
pprint(pia_2017)
```
## Support These Projects
**Patreon:**
Help support this project and future projects by donating to my [Patreon Page](https://www.patreon.com/sigmacoding). I'm
always looking to add more content for individuals like yourself, unfortuantely some of the APIs I would require me
to pay monthly fees.
**YouTube:**
If you'd like to watch more of my content, feel free to visit my YouTube channel [Sigma Coding](https://www.youtube.com/c/SigmaCoding).