This snippet uses:
- t, a command-line tool for accessing the Twitter API
- csvcut from the invaluable csvkit suite
- a CSV of U.S. congressmember data compiled by the Sunlight Foundation, from the public unitedstates/congress-legislators Github project.
First, download the CSV (included below in this gist as sunlight-legislators.csv: