{"id":24289149,"url":"https://github.com/csheldonhess/reporting-on-congress","last_synced_at":"2026-04-20T07:33:27.753Z","repository":{"id":69339289,"uuid":"153367900","full_name":"csheldonhess/reporting-on-congress","owner":"csheldonhess","description":"What has Congress passed and not passed, lately?","archived":false,"fork":false,"pushed_at":"2018-12-25T01:05:10.000Z","size":126,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T01:24:55.519Z","etag":null,"topics":["civic-data","congress","data","government","government-data","propublica","propublica-congress-api"],"latest_commit_sha":null,"homepage":"https://csheldonhess.github.io/reporting-on-congress","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csheldonhess.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-16T23:33:20.000Z","updated_at":"2024-01-02T23:01:41.000Z","dependencies_parsed_at":"2023-03-11T05:41:20.313Z","dependency_job_id":null,"html_url":"https://github.com/csheldonhess/reporting-on-congress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/csheldonhess/reporting-on-congress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csheldonhess%2Freporting-on-congress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csheldonhess%2Freporting-on-congress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csheldonhess%2Freporting-on-congress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csheldonhess%2Freporting-on-congress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csheldonhess","download_url":"https://codeload.github.com/csheldonhess/reporting-on-congress/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csheldonhess%2Freporting-on-congress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32037860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["civic-data","congress","data","government","government-data","propublica","propublica-congress-api"],"created_at":"2025-01-16T10:51:30.347Z","updated_at":"2026-04-20T07:33:27.733Z","avatar_url":"https://github.com/csheldonhess.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reporting on Congress\n\nWhat has Congress passed and not passed, lately? \n\nThis page lives at [https://csheldonhess.github.io/reporting-on-congress/](https://csheldonhess.github.io/reporting-on-congress/). If you want to see the code, you're in the right place.\n* Markdown files corresponding to each page on the site are in the `docs` folder\n* The code that generates those pages is in `report.py`\n* `_config.yml` is just a little bit of configuration for GitHub's Jekyll renderer.\n\nTo download and run this code yourself, you're going to want to register for an API key from [ProPublica](https://projects.propublica.org/api-docs/congress-api/) and put it in a file called `propublica-key.txt`, in the same directory as the code. You'll also need an API key from [News API](https://newsapi.org/docs/get-started), which you'll put in `news-key.txt`. You'll need to make sure you have [requests](http://docs.python-requests.org/en/master/) installed, as well. And, finally, unless you're on a Mac running under the username \"coral,\" you'll need to change all of my file paths. They are fully specified for my machine because of the way I'm keeping this page up to date, which brings us to the next point:\n\n`github.py` is there to update the markdown files in github automatically, via a cron job on my laptop. This is not the best possible way to deploy a web service, for a lot of reasons, but it has the advantage of being 100% free of charge and not requiring me to figure out how to wake up a Heroku servo when I need it. If you decide to go this route, I can tell you from experience that 1) you'll need to fully specify all of your file paths, both in the crontab command list and in the code itself, and 2) it's not going to run when your machine is idle. Like I said, not ideal. Anyway, if you decide you want to try `github.py` out for yourself, you'll want to remove all mention of my GitHub account and replace it with your own. You'll also need to put your GitHub password into a file called `gh-pass.txt`.\n\n`old_report.py` is deprecated and is only included in this repo because I made an example of myself in a lesson, one time, and the lesson links here. 😁 And, I mean, if you want to see how I go about ripping up a working piece of code and refactoring it into something more readable, there you go. `old_report.py` was the alpha version of this project.\n\nAll of the votes are available courtesy of [ProPublica](https://www.propublica.org/), and related news articles are thanks to [News API](https://newsapi.org/). All the code is my own, and is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike license.\n \n![CC-by-nc-sa](cc-by-nc-sa.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsheldonhess%2Freporting-on-congress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsheldonhess%2Freporting-on-congress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsheldonhess%2Freporting-on-congress/lists"}