GitHub - edsu/us-legislators-social Skip to content Sign up Why GitHub? Features → Mobile → Actions → Codespaces → Packages → Security → Code review → Project management → Integrations → GitHub Sponsors → Customer stories → Security → Team Enterprise Explore Explore GitHub → Learn & contribute Topics → Collections → Trending → Learning Lab → Open source guides → Connect with others The ReadME Project → Events → Community forum → GitHub Education → GitHub Stars program → Marketplace Pricing Plans → Compare plans → Contact Sales → Nonprofit → Education → In this repository All GitHub ↵ Jump to ↵ No suggested jump to results In this repository All GitHub ↵ Jump to ↵ In this user All GitHub ↵ Jump to ↵ In this repository All GitHub ↵ Jump to ↵ Sign in Sign up {{ message }} edsu / us-legislators-social Watch 1 Star 0 Fork 0 CC0-1.0 License 0 stars 0 forks Star Watch Code Issues 0 Pull requests 0 Actions Projects 0 Security Insights More Code Issues Pull requests Actions Projects Security Insights master 1 branch 0 tags Go to file Code Clone HTTPS GitHub CLI Use Git or checkout with SVN using the web URL. Work fast with our official CLI. Learn more. Open with GitHub Desktop Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching Xcode If nothing happens, download Xcode and try again. Go back Launching Visual Studio If nothing happens, download the GitHub extension for Visual Studio and try again. Go back Latest commit edsu latest … b0ce979 Feb 4, 2021 latest b0ce979 Git stats 4 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time experiments     .gitignore     LICENSE     README.md     history.py     legislators.yaml     requirements.txt     View code README.md us-legislators-social This project is a small experiment with all the fine data about US Congressional legislators over in the congress-legislators repository. In addition to all the information about House representatives and Senators One of the things that is available in this repository are links to politician's social media accounts. To keep things simple this file only includes information for current officials. So when legislators leave office their entry in this file is removed. The information isn't rolled into the other historical data, which makes looking back at what these accounts were impossible. But fortunately Git has a record of the old entries. This repository contains an amalgamation of the legislators-current.yaml and legislators-historical.yaml data files that is merged with the legislators-social-media.yaml file. In order reconstruct the historical data the git revision history for legislators-social-media.yaml is wound backwards and parsed. Here's an example of a reconstituted entry: - id: bioguide: B001288 lis: S370 thomas: '02194' govtrack: 412598 opensecrets: N00035267 votesmart: 76151 wikipedia: Cory Booker ballotpedia: Cory Booker fec: - S4NJ00185 cspan: 84679 maplight: 2051 wikidata: Q1135767 google_entity_id: kg:/m/06p430 icpsr: 41308 name: first: Cory middle: Anthony last: Booker official_full: Cory A. Booker bio: birthday: '1969-04-27' gender: M terms: - type: sen start: '2013-10-31' end: '2015-01-03' state: NJ class: 2 party: Democrat state_rank: junior url: http://www.booker.senate.gov phone: 202-224-3224 address: 141 Hart Senate Office Building Washington DC 20510 office: 141 Hart Senate Office Building contact_form: http://www.booker.senate.gov/?p=contact - type: sen start: '2015-01-06' end: '2021-01-03' state: NJ class: 2 party: Democrat state_rank: junior url: https://www.booker.senate.gov phone: 202-224-3224 address: 717 Hart Senate Office Building Washington DC 20510 office: 717 Hart Senate Office Building contact_form: https://www.booker.senate.gov/?p=contact fax: 202-224-8378 - type: sen start: '2021-01-03' end: '2027-01-03' state: NJ class: 2 state_rank: junior party: Democrat url: https://www.booker.senate.gov contact_form: https://www.booker.senate.gov/?p=contact address: 717 Hart Senate Office Building Washington DC 20510 office: 717 Hart Senate Office Building phone: 202-224-3224 social: twitter: senbooker: '2017-09-28' senbookeroffice: '2017-02-24' corybooker: '2016-05-09' senbookerofc: '2013-11-23' twitter_id: 2167097881: '2015-08-02' 15808765: '2017-02-21' youtube: sencorybooker: '2014-02-05' youtube_id: uc6flymqns1vettnvza7gopa: '2015-02-17' Install & Run You can simply use the legislators.yaml file that is included here. But if you want you can rerun it at any time, which will clone the congress-legislators repository, wind back the revisions and write out a new legislators.yaml: pip3 install -r requirements.txt python3 history.py One of the downsides to winding back the revision history is that it also can accidentally bring in bugs that have been fixed. If you notice any please submit an issue ticket. Maybe it makes sense to roll some of this functionality into the original repository... About No description, website, or topics provided. Resources Readme License CC0-1.0 License Releases No releases published Packages 0 No packages published Languages Python 100.0% © 2021 GitHub, Inc. Terms Privacy Security Status Docs Contact GitHub Pricing API Training Blog About You can’t perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.