{"id":17377453,"url":"https://github.com/artoonie/redstatesbluestates","last_synced_at":"2026-01-20T12:33:11.626Z","repository":{"id":20715364,"uuid":"90704770","full_name":"artoonie/RedStatesBlueStates","owner":"artoonie","description":"Find Facebook friend in Red (Republican) States or Blue (Democratic) States based on their senators","archived":false,"fork":false,"pushed_at":"2022-12-07T23:58:39.000Z","size":756,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T14:17:12.131Z","etag":null,"topics":["democracy","facebook","senators"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/artoonie.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-05-09T05:11:00.000Z","updated_at":"2020-01-31T03:35:33.000Z","dependencies_parsed_at":"2023-01-11T20:57:06.196Z","dependency_job_id":null,"html_url":"https://github.com/artoonie/RedStatesBlueStates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/artoonie/RedStatesBlueStates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artoonie%2FRedStatesBlueStates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artoonie%2FRedStatesBlueStates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artoonie%2FRedStatesBlueStates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artoonie%2FRedStatesBlueStates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artoonie","download_url":"https://codeload.github.com/artoonie/RedStatesBlueStates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artoonie%2FRedStatesBlueStates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28603392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T12:01:53.233Z","status":"ssl_error","status_checked_at":"2026-01-20T12:01:46.545Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["democracy","facebook","senators"],"created_at":"2024-10-16T05:22:10.504Z","updated_at":"2026-01-20T12:33:11.608Z","avatar_url":"https://github.com/artoonie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Summary\nA Django Application which gives you a list of your friends in \"Red States\" or \"Blue States.\"\nYou can also use it to generate your own lists - for example, friends who live in states whose senators could swing certain votes.\n\nYour friends' senators don't represent you, but you can ask your friends to contact their senators.\n\nView it live at [redfriendsbluefriends.com](https://www.redfriendsbluefriends.com).\n\n# Generated URLs\nWhen this project started, I used to search by state. Facebook has blocked that functionally, so instead, we now only find friends in the sixty most populous cities in each region.\nThis is not ideal. We'd like the following links to work again:\n## [Your Red Friends](https://www.facebook.com/search/109146809103536/residents/present/112083625475436/residents/present/109714185714936/residents/present/104039182964473/residents/present/108337852519784/residents/present/112822538733611/residents/present/104083326294266/residents/present/104131666289619/residents/present/109306932420886/residents/present/108545005836236/residents/present/105528489480786/residents/present/109176885767113/residents/present/106153826081984/residents/present/108083605879747/residents/present/104037882965264/residents/present/111689148842696/residents/present/103994709636969/residents/present/111957282154793/residents/present/104004246303834/residents/present/108296539194138/residents/present/108037302558105/residents/present/108603925831326/residents/present/105818976117390/residents/present/104024609634842/residents/present/104164412953145/residents/present/103118929728297/residents/present/105493439483468/residents/present/109983559020167/residents/present/113067432040067/residents/present/108635949160808/residents/present/109438335740656/residents/present/112283278784694/residents/present/union/me/friends/intersect)\n## [Your Blue Friends](https://www.facebook.com/search/110453875642908/residents/present/105643859470062/residents/present/109146809103536/residents/present/112083625475436/residents/present/113667228643818/residents/present/109714185714936/residents/present/105486989486087/residents/present/108325505857259/residents/present/108301835856691/residents/present/104131666289619/residents/present/109306932420886/residents/present/112825018731802/residents/present/105528489480786/residents/present/108295552526163/residents/present/109176885767113/residents/present/109564639069465/residents/present/106153826081984/residents/present/108131585873862/residents/present/107907135897622/residents/present/112386318775352/residents/present/111957282154793/residents/present/112750485405808/residents/present/108178019209812/residents/present/112439102104396/residents/present/104024609634842/residents/present/103118929728297/residents/present/112577505420980/residents/present/109706309047793/residents/present/109983559020167/residents/present/109564342404151/residents/present/union/me/friends/intersect)\n\nIf you know anyone at Facebook who can re-enable searching by state, please ask them or put me in contact with them!\n\n# Credit\n- [ProPublica](https://propublica.github.io/congress-api-docs/#lists-of-members) provides a fantastic aggregation of data on MoCs.\n\n- [Reddit user taniapdx](https://propublica.github.io/congress-api-docs/#lists-of-members) has created the only mapping of states-to-facebook-codes that I could find on the web, and I assume it was manually and painstakenly collected.\n\n- This project was inspired by [Indivisible Berkeley](http://www.indivisibleberkeley.org). \\#resist\n\n# Technical Details\n## Running the code\nYou need the following environment variables:\n```bash\nexport DEBUG=[true,false]\nexport PROPUBLICA_API_KEY=\u003cyour-key\u003e\nexport SECRET_KEY=\u003cany-secret\u003e\n```\n[You can obtain a propublica API key here](https://www.propublica.org/datastore/api/propublica-congress-api).\n\nAfter installing requirements and heroku CLI, you should be able to run `heroku local` to run it.\n\n\n## Why not use the Facebook API?\nI originally tried to use the Facebook Graph Search API to get the representatives and senators for all your friends, but Facebook privacy settings prevent apps from accessing information about your friends.\nGenerating a search URL for every district seems impossible, since congressional districts don't line up with searchable cities (and also because the search URL would contain every city in the US).\n\nThe original project using the Facebook API is available here: https://github.com/artoonie/django-redblue\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartoonie%2Fredstatesbluestates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartoonie%2Fredstatesbluestates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartoonie%2Fredstatesbluestates/lists"}