{"id":18084380,"url":"https://github.com/eyeseast/propublica-congress","last_synced_at":"2025-03-28T23:32:15.075Z","repository":{"id":57456837,"uuid":"80932046","full_name":"eyeseast/propublica-congress","owner":"eyeseast","description":"A Python client for the ProPublica Congress API","archived":false,"fork":false,"pushed_at":"2020-07-16T14:32:56.000Z","size":74,"stargazers_count":53,"open_issues_count":12,"forks_count":19,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-14T12:48:58.081Z","etag":null,"topics":["api","api-client","congress","government","politics","python"],"latest_commit_sha":null,"homepage":"https://propublica-congress.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eyeseast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-04T16:30:48.000Z","updated_at":"2024-09-09T22:54:29.000Z","dependencies_parsed_at":"2022-09-02T16:59:29.060Z","dependency_job_id":null,"html_url":"https://github.com/eyeseast/propublica-congress","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyeseast%2Fpropublica-congress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyeseast%2Fpropublica-congress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyeseast%2Fpropublica-congress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyeseast%2Fpropublica-congress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eyeseast","download_url":"https://codeload.github.com/eyeseast/propublica-congress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222431530,"owners_count":16983387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-client","congress","government","politics","python"],"created_at":"2024-10-31T15:06:42.173Z","updated_at":"2024-10-31T15:06:42.863Z","avatar_url":"https://github.com/eyeseast.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Python Congress\n==================\n\nA Python client for the ProPublica [Congress API](https://projects.propublica.org/api-docs/congress-api/)\n\nInstall\n-------\n\nFrom PyPI:\n\n    pip install python-congress\n\nDownload and run the install script:\n\n    git clone https://github.com/eyeseast/propublica-congress \u0026\u0026 cd propublica-congress\n    python setup.py install\n\nUsage\n-----\n\n    \u003e\u003e\u003e from congress import Congress\n    \u003e\u003e\u003e congress = Congress(API_KEY)\n    \n    # get member by bioguide ID\n    \u003e\u003e\u003e pelosi = congress.members.get('P000197')\n    \u003e\u003e\u003e pelosi['twitter_id']\n    'NancyPelosi'\n    \n    # get recent House bills\n    # recent bills come in two types: 'introduced' and 'updated'\n    \u003e\u003e\u003e introd = congress.bills.recent(chamber='house', congress=111, type='introduced')\n    \u003e\u003e\u003e len(introd['bills'])\n    20\n    \u003e\u003e\u003e introd['chamber']\n    'House'\n    \n    # or use a convenience function\n    \u003e\u003e\u003e introd = congress.bills.introduced('house')\n    \u003e\u003e\u003e introd['chamber']\n    'House'\n    \u003e\u003e\u003e len(introd['bills'])\n    20\n    \n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyeseast%2Fpropublica-congress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feyeseast%2Fpropublica-congress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyeseast%2Fpropublica-congress/lists"}