Skip to main content

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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

OpenSecrets_Senators_Industries-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file OpenSecrets_Senators_Industries-0.1.0.tar.gz.

File metadata

File hashes

Hashes for OpenSecrets_Senators_Industries-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c23af2a49229f695128bfb044cbe1bad3530ebb1a4b2dd32a978bb0e880929f5
MD5 6bb7b79b49b2bf50de1780c78b8b6002
BLAKE2b-256 7e786b749c57821d27127b21cabedbfb6393541223c3272e67aaacab3347ca38

See more details on using hashes here.

File details

Details for the file OpenSecrets_Senators_Industries-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for OpenSecrets_Senators_Industries-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee29841a8bec635f84dba1e8a58bf237aecafbc3267796462fa54c4fe980b405
MD5 bfe6f6c4fe1dbbc62f0a9a18020b651f
BLAKE2b-256 e39d6eda6a60c1d371c1aee06b3fcd9dfcdf1d2b1db557d114a808b2527d1823

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page