Python package using the OpenSecrets and ProPublica APIs to allow users to view information about their senators and the industries that fund them
Project description
OpenSecrets_Senators_Industries
Python package that allows users to view information about their senators and the industries that fund them.
Installation
$ pip install OpenSecrets_Senators_Industries
Usage
To use this package, users are required to obtain two API Keys:
- ProPublica Congress API - Request for API Key here: https://www.propublica.org/datastore/api/propublica-congress-api
- OpenSecrets API - Create an account and obtain API key here: https://www.opensecrets.org/api/admin/index.php?function=signup
from OpenSecrets_Senators_Industries import OpenSecrets_Senators_Industries
ProPublica = ProPublicaAPIKey('insert ProPublica API Key here')
OpenSecrets = OpenSecretsAPIKey('insert OpenSecrets API Key here')
top_20_industries_ids(year)
ProPublica.senate_members(congress_sitting)
OpenSecrets.top_senators_each_industry(propublica_api_key, industry_id, congress_sitting)
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
OpenSecrets_Senators_Industries
was created by Jade Qiu. It is licensed under the terms of the MIT license.
Credits
OpenSecrets_Senators_Industries
was created with cookiecutter
and the py-pkgs-cookiecutter
template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for OpenSecrets_Senators_Industries-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c23af2a49229f695128bfb044cbe1bad3530ebb1a4b2dd32a978bb0e880929f5 |
|
MD5 | 6bb7b79b49b2bf50de1780c78b8b6002 |
|
BLAKE2b-256 | 7e786b749c57821d27127b21cabedbfb6393541223c3272e67aaacab3347ca38 |
Hashes for OpenSecrets_Senators_Industries-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee29841a8bec635f84dba1e8a58bf237aecafbc3267796462fa54c4fe980b405 |
|
MD5 | bfe6f6c4fe1dbbc62f0a9a18020b651f |
|
BLAKE2b-256 | e39d6eda6a60c1d371c1aee06b3fcd9dfcdf1d2b1db557d114a808b2527d1823 |