unitedstates / images Goto Github PK
View Code? Open in Web Editor NEWPublic domain photos of Members of the United States Congress
Home Page: https://theunitedstates.io/images/
License: Creative Commons Zero v1.0 Universal
Public domain photos of Members of the United States Congress
Home Page: https://theunitedstates.io/images/
License: Creative Commons Zero v1.0 Universal
Bioguide: B001292
Name: Donald Beyer
Full source link: https://beyer.house.gov/uploadedphotos/highresolution/353eed9b-2899-47a6-b1c0-5efdfbdee33b.jpg
Metadata
name: Official House Website for Donald Beyer
link: https://beyer.house.gov/about/presskit.htm
P000149 (this is the ID of the father in a father/son pair but the image is of the son; the son P000604 has the correct image)
J000285 (this is the wrong Tim Johnson)
Bioguide: R000601
Name: John Ratcliffe
Metadata
name: High resolution photo provided by Rep. John Ratcliffe's House office over email. Copyright-free status confirmed by a member of his staff.
link: https://ratcliffe.house.gov/press-kit
Bioguide: S001196
Name: Elise Stefanik
Full source link: https://stefanik.house.gov/sites/stefanik.house.gov/files/documents/Official%20Portrait.jpg
Metadata
name: Official House Website for Elise Stefanik
link: https://stefanik.house.gov/about/full-biography
By default the script is searching for the 113rd congress. It should be changed to 114 by default in:
parser.add_argument(
'-n', '--congress', default='113',
help="Congress session number, for example: 110, 111, 112, 113")
But when running on the 114, it doesn't find any links:
$ python scripts/gpo_member_photos.py -n 114
Updating the congress-legislators repo...
The system cannot find the path specified.
Submit congress session number: 114
Links: 0
Found a total of 0 member links
---
Didn't resolve Bioguide IDs: 0
Welcome to Git (version 1.9.5-preview20141217)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
Silently Installing...
mkdir: cannot create directory `congress/225x275': File exists
mkdir: cannot create directory `congress/450x550': File exists
Bioguide: H001070
Name: Cresent Hardy
Image from his House website here:
http://hardyforms.house.gov/uploadedphotos/highresolution/88cea7de-ed95-44e1-9983-958eec980686.jpg
If we want to include images from other sources, we should add metadata to each image with source information. Might be YAML like:
name: GPO Member Guide
link: http://memberguide.gpo.gov
Bioguide: D000623
Name: Mark DeSaulnier
Full source link: https://desaulnier.house.gov/sites/desaulnier.house.gov/files/styles/congress_image_medium/public/wysiwyg_uploaded/MD%20Portrait.jpg
Metadata
name: Official House Website for Mark DeSaulnier
link: https://desaulnier.house.gov/about
I'm running this:
python scripts/gpo_member_photos.py
Getting this:
Traceback (most recent call last):
File "scripts/gpo_member_photos.py", line 393, in <module>
member_links = get_front_page(br, args.congress, args.delay)
File "scripts/gpo_member_photos.py", line 63, in get_front_page
br.select_form(nr=0)
File "/usr/local/lib/python2.7/site-packages/mechanize/_mechanize.py", line 524, in select_form
raise FormNotFoundError("no form matching "+description)
mechanize._mechanize.FormNotFoundError: no form matching nr 0
I'm on a Mac. I don't speak Python.
The current commit is only passing under Python 2.6 and 2.7:
https://travis-ci.org/hugovk/images/builds/22171589
Now that we're under Travis' watchful eye, we should get the tests to all pass.
Is scripts/missing.py
a good idea to run on Travis? It does network downloads, for example. It might be better to have a script which can run more quickly and doesn't tax Travis as much.
Bioguide: H001073
Name: Will Hurd
Full source link: http://hurd.house.gov/sites/hurd.house.gov/files/official.jpg
Metadata
name: Official House Website for Will Hurd
link: https://hurd.house.gov/about/full-biography
I notice a lot of members post full resolution color images on their .gov sites. I'd like to help track down images to fill the gaps in coverage from the GPO source.
Also could be useful to have a list of members whose images are just the black and white versions.
The to do list:
This is a list of members currently in /unitedstates/images that have black and white, small or otherwise subpar images that were taken from the GPO's New Member Pictorial Directory: 114th Congress. More background here.
I'd like to improve these images one-by-one. It'll probably take some time, but it's worth having high quality encyclopedic portraits of members trickling down to all the end users of this repo.
I've moved the repo to use only the gh-pages
branch, so the images will have public URLs. Document these in the README.
Bioguide: W000821
Name: Bruce Westerman
Image from his House website here:
https://westerman.house.gov/media-center/photo-galleries/official-photo-rep-bruce-westerman
I've added a Travis CI build. Everything's in the https://github.com/unitedstates/images/blob/gh-pages/.travis.yml file.
It runs on all available Python versions (2.6, 2.7, 3.2, 3.3 and pypy, with 3.4 coming along any day now). It's allowed to fail for all versions but 2.7. It passes on 2.6 and 2.7 as Python 3 isn't supported yet. (Probably just the print
s.)
It then runs the tests, with coverage, and checks for missing images. After a successful build it sends coverage to Coveralls and runs some basic static analysis (pep8, pyflakes).
Both Travis CI and Coveralls are free for open source, and you get reports like this (from my fork):
https://travis-ci.org/hugovk/images
https://coveralls.io/r/hugovk/images
Travis is really handy to check nothing gets broken on on other platforms, for each commit. Coverage isn't so useful as coverage is only 33%, but it doesn't hurt to enable.
I don't see any particular need to show the badges in the README.
Please could you enable Travis CI and Coveralls for this repo?
Occasionally for https://github.com/efforg/congress-forms-test we have to pull the latest 225x275 images. Instead of pulling the entire repo with the much larger images, I'm able to use github's support of svn
to grab just that path:
svn checkout https://github.com/unitedstates/images/trunk/congress/225x275
You may want to add instructions on how to do this in the README.md
Bioguide: A000371
Name: Pete Aguilar
Full source link: https://aguilar.house.gov/sites/aguilar.house.gov/files/styles/congress_image_medium/public/wysiwyg_uploaded/Headshot_0.jpg
Metadata
name: Official House Website for Pete Aguilar
link: https://aguilar.house.gov/about/full-biography
Adding HTTPS support will make these images usable in secure environments, without mixed content warnings.
We have image URLs on a custom domain right now, which is great for portability (we can easily leave Github) but less good for HTTPS. Github supports HTTPS for Github Pages now, but only for *.github.io
domains.
However, Cloudflare may change this game if they offer a free SSL-only plan, as they say they will.
When that time comes, it's worth me putting Cloudflare in front of theunitedstates.io
so that we can get an SSL terminator in front of everything, and have things encrypted end to end. I'm dropping this here as a reminder.
There's no telling when new Members of Congress will get photos on the memberguide site. It could be soon or it could be far off. In the meanwhile, someone could scrape:
Which has not-very-high-res black and white photos of new members. I used to scrape these PDFs by hand. It was the WORST thing ever. But it's there.
Bioguide: T000474
Name: Norma Torres
Full source link: https://torres.house.gov/sites/torres.house.gov/files/Official%20Photo.jpg
Metadata
name: Official House Website for Norma Torres
link: https://torres.house.gov/about/full-biography
Bioguide: C001105
Name: Barbara Comstock
Full source link: https://comstock.house.gov/sites/comstock.house.gov/files/2015-02-18_ec_0019.jpg
Metadata
name: Official House Website for Barbara Comstock
link: https://comstock.house.gov/about/full-biography
Bioguide: E000295
Name: Joni Ernst
Image from her Senate website here:
http://www.ernst.senate.gov/sites/default/files/Sen.%20Joni%20Ernst%20-%20Official%20Portrait.jpg
We're not dedicating those photos to the public domain - they already exist in it, as confirmed by GPO.
Bioguide: E000294
Name: Tom Emmer
Full source link: https://emmer.house.gov/sites/emmer.house.gov/files/wysiwyg_uploaded/Offical%20Photo_0.jpg
Metadata
name: Official House Website for Tom Emmer
link: https://emmer.house.gov/about
congress/originals
directoryutils
functions it was usingBioguide: T000475
Name: Dave Trott
Full source link: https://trott.house.gov/sites/trott.house.gov/files/documents/Rep.Trott_OfficialPhoto.jpg
Metadata
name: Official House Website for Dave Trott
link: https://trott.house.gov/about/full-biography
Bioguide: Y000066
Name: David Young
Full source link: https://davidyoung.house.gov/sites/davidyoung.house.gov/files/documents/DEY%20Headshot.jpg
Metadata
name: Official House Website for David Young
link: https://davidyoung.house.gov/about/full-biography
Bioguide: N000188
Name: Donald Norcross
Full source link: https://norcross.house.gov/sites/norcross.house.gov/files/RepDonaldNorcross-official.jpg
Metadata
name: Official House Website for Donald Norcross
link: http://norcross.house.gov/about/full-biography
Make a requirements.txt
file with any pip
requirements, and document the get-up-and-go process.
Bioguide: G000575
Name: Gwen Graham
Full source link: https://graham.house.gov/sites/graham.house.gov/files/featured_image/Graham%20Headshot.jpg
Metadata
name: Official House Website for Gwen Graham
link: https://graham.house.gov/about/full-biography
The congress
directory is empty!
It seems that the image for Cory Booker - B001288 is missing.
Bioguide: A000372
Name: Rick Allen
Source link: http://allen.house.gov/uploadedphotos/highresolution/949c137d-ff13-4c33-8a92-11a4f17263a6.jpg
Metadata
name: Official House Website for Rick Allen
link: http://allen.house.gov/
Curtis Clawson. Looks like he has only been in office for ~ 3 months.
Bioguide: B001297
Name: Ken Buck
Full source link: https://buck.house.gov/sites/buck.house.gov/files/wysiwyg_uploaded/2014-11-14_knb_0128.jpg
Metadata
name: Official House Website for Ken Buck
link: https://buck.house.gov/official-photo
The permalinks to these images are unable to be used by an HTTPS website without throwing mixed content warnings. There's no way to address this with Github Pages.
I'll update the README to encourage HTTPS users to mirror the images on their own rather than use the permalinks, and to write Github support if they think they shouldn't have to do that.
Bioguide: P000612
Name: David Perdue
Image from his Senate website here:
http://www.perdue.senate.gov/sites/default/files/DavidPerdueOfficialHeadshot2015.jpg
Bioguide: C001106
Name: Ryan Costello
Full source link: https://costello.house.gov/sites/costello.house.gov/files/styles/congress_image_medium/public/wysiwyg_uploaded/PA06-Costello-officialphoto.jpg?itok=egcbIqY9
Metadata
name: Official House Website for Ryan Costello
link: https://costello.house.gov/about
Bioguide: R000600
Name: Amata Coleman Radewagen
This image was received after contacting the office. Below is the correspondence with the office:
Please see attachment.
Jared Michael P. Christel
Legislative Correspondent
Congresswoman Aumua Amata C. Radewagen
American Samoa At Large District (AQ00)
1339 Longworth HOB
T: (202) 225-8577
F: (202)225-8757
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Monday, March 30, 2015 5:05 PM
To: WebForms, RadewagenAQ
Subject: Website Problem
WEB PAGE WITH PROBLEM: https://radewagen.house.gov
NATURE OF PROBLEM:
I can't find Rep. Radewagen's official House portrait. I'm looking to add the government made, copyright free image to a repository of images of members of Congress that others can freely use. Please let me know where I can find this.
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.