{"action":"opened","number":115,"pull_request":{"url":"https://api.github.com/repos/unitedstates/images/pulls/115","id":50284550,"html_url":"https://github.com/unitedstates/images/pull/115","diff_url":"https://github.com/unitedstates/images/pull/115.diff","patch_url":"https://github.com/unitedstates/images/pull/115.patch","issue_url":"https://api.github.com/repos/unitedstates/images/issues/115","number":115,"state":"open","locked":false,"title":"simplify the scraper by using Congress.gov to map bioguide IDs to GPO image URLs","user":{"login":"JoshData","id":445875,"avatar_url":"https://avatars.githubusercontent.com/u/445875?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshData","html_url":"https://github.com/JoshData","followers_url":"https://api.github.com/users/JoshData/followers","following_url":"https://api.github.com/users/JoshData/following{/other_user}","gists_url":"https://api.github.com/users/JoshData/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshData/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshData/subscriptions","organizations_url":"https://api.github.com/users/JoshData/orgs","repos_url":"https://api.github.com/users/JoshData/repos","events_url":"https://api.github.com/users/JoshData/events{/privacy}","received_events_url":"https://api.github.com/users/JoshData/received_events","type":"User","site_admin":false},"body":"The GPO member guide scraper has to resolve names to bioguide IDs. This is hard to verify the accuracy of.\r\n\r\nCongress.gov has thumbnail images of Members, and they happen to store the photo file using the same name as on memberguide.gpo.gov. So we can use Congress.gov as the cross-walk between bioguide IDs and memberguide URLs to full-size photos.\r\n\r\nThis PR revises the scraper to fetch new images by scanning Congress.gov first, and then getting the full size image file directly from memberguide.gpo.gov.\r\n\r\nI've also added separate commits to this that fetches all images available for the 114th Congress & updates the resized copies.\r\n\r\nThink this is a good approach?","created_at":"2015-11-10T17:29:56Z","updated_at":"2015-11-10T17:29:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/unitedstates/images/pulls/115/commits","review_comments_url":"https://api.github.com/repos/unitedstates/images/pulls/115/comments","review_comment_url":"https://api.github.com/repos/unitedstates/images/pulls/comments{/number}","comments_url":"https://api.github.com/repos/unitedstates/images/issues/115/comments","statuses_url":"https://api.github.com/repos/unitedstates/images/statuses/21efceb7ee19473de056c7871faa5c63802d4892","head":{"label":"unitedstates:newscraper","ref":"newscraper","sha":"21efceb7ee19473de056c7871faa5c63802d4892","user":{"login":"unitedstates","id":2200203,"avatar_url":"https://avatars.githubusercontent.com/u/2200203?v=3","gravatar_id":"","url":"https://api.github.com/users/unitedstates","html_url":"https://github.com/unitedstates","followers_url":"https://api.github.com/users/unitedstates/followers","following_url":"https://api.github.com/users/unitedstates/following{/other_user}","gists_url":"https://api.github.com/users/unitedstates/gists{/gist_id}","starred_url":"https://api.github.com/users/unitedstates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unitedstates/subscriptions","organizations_url":"https://api.github.com/users/unitedstates/orgs","repos_url":"https://api.github.com/users/unitedstates/repos","events_url":"https://api.github.com/users/unitedstates/events{/privacy}","received_events_url":"https://api.github.com/users/unitedstates/received_events","type":"Organization","site_admin":false},"repo":{"id":16810726,"name":"images","full_name":"unitedstates/images","owner":{"login":"unitedstates","id":2200203,"avatar_url":"https://avatars.githubusercontent.com/u/2200203?v=3","gravatar_id":"","url":"https://api.github.com/users/unitedstates","html_url":"https://github.com/unitedstates","followers_url":"https://api.github.com/users/unitedstates/followers","following_url":"https://api.github.com/users/unitedstates/following{/other_user}","gists_url":"https://api.github.com/users/unitedstates/gists{/gist_id}","starred_url":"https://api.github.com/users/unitedstates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unitedstates/subscriptions","organizations_url":"https://api.github.com/users/unitedstates/orgs","repos_url":"https://api.github.com/users/unitedstates/repos","events_url":"https://api.github.com/users/unitedstates/events{/privacy}","received_events_url":"https://api.github.com/users/unitedstates/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unitedstates/images","description":"Public domain photos of Members of the United States Congress","fork":false,"url":"https://api.github.com/repos/unitedstates/images","forks_url":"https://api.github.com/repos/unitedstates/images/forks","keys_url":"https://api.github.com/repos/unitedstates/images/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unitedstates/images/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unitedstates/images/teams","hooks_url":"https://api.github.com/repos/unitedstates/images/hooks","issue_events_url":"https://api.github.com/repos/unitedstates/images/issues/events{/number}","events_url":"https://api.github.com/repos/unitedstates/images/events","assignees_url":"https://api.github.com/repos/unitedstates/images/assignees{/user}","branches_url":"https://api.github.com/repos/unitedstates/images/branches{/branch}","tags_url":"https://api.github.com/repos/unitedstates/images/tags","blobs_url":"https://api.github.com/repos/unitedstates/images/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unitedstates/images/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unitedstates/images/git/refs{/sha}","trees_url":"https://api.github.com/repos/unitedstates/images/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unitedstates/images/statuses/{sha}","languages_url":"https://api.github.com/repos/unitedstates/images/languages","stargazers_url":"https://api.github.com/repos/unitedstates/images/stargazers","contributors_url":"https://api.github.com/repos/unitedstates/images/contributors","subscribers_url":"https://api.github.com/repos/unitedstates/images/subscribers","subscription_url":"https://api.github.com/repos/unitedstates/images/subscription","commits_url":"https://api.github.com/repos/unitedstates/images/commits{/sha}","git_commits_url":"https://api.github.com/repos/unitedstates/images/git/commits{/sha}","comments_url":"https://api.github.com/repos/unitedstates/images/comments{/number}","issue_comment_url":"https://api.github.com/repos/unitedstates/images/issues/comments{/number}","contents_url":"https://api.github.com/repos/unitedstates/images/contents/{+path}","compare_url":"https://api.github.com/repos/unitedstates/images/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unitedstates/images/merges","archive_url":"https://api.github.com/repos/unitedstates/images/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unitedstates/images/downloads","issues_url":"https://api.github.com/repos/unitedstates/images/issues{/number}","pulls_url":"https://api.github.com/repos/unitedstates/images/pulls{/number}","milestones_url":"https://api.github.com/repos/unitedstates/images/milestones{/number}","notifications_url":"https://api.github.com/repos/unitedstates/images/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unitedstates/images/labels{/name}","releases_url":"https://api.github.com/repos/unitedstates/images/releases{/id}","created_at":"2014-02-13T17:27:58Z","updated_at":"2015-10-26T21:27:21Z","pushed_at":"2015-11-10T17:26:51Z","git_url":"git://github.com/unitedstates/images.git","ssh_url":"git@github.com:unitedstates/images.git","clone_url":"https://github.com/unitedstates/images.git","svn_url":"https://github.com/unitedstates/images","homepage":"","size":593037,"stargazers_count":35,"watchers_count":35,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":4,"forks":12,"open_issues":4,"watchers":35,"default_branch":"gh-pages"}},"base":{"label":"unitedstates:gh-pages","ref":"gh-pages","sha":"45295f460d3c433ec82d623db223f6aff9b9c4a0","user":{"login":"unitedstates","id":2200203,"avatar_url":"https://avatars.githubusercontent.com/u/2200203?v=3","gravatar_id":"","url":"https://api.github.com/users/unitedstates","html_url":"https://github.com/unitedstates","followers_url":"https://api.github.com/users/unitedstates/followers","following_url":"https://api.github.com/users/unitedstates/following{/other_user}","gists_url":"https://api.github.com/users/unitedstates/gists{/gist_id}","starred_url":"https://api.github.com/users/unitedstates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unitedstates/subscriptions","organizations_url":"https://api.github.com/users/unitedstates/orgs","repos_url":"https://api.github.com/users/unitedstates/repos","events_url":"https://api.github.com/users/unitedstates/events{/privacy}","received_events_url":"https://api.github.com/users/unitedstates/received_events","type":"Organization","site_admin":false},"repo":{"id":16810726,"name":"images","full_name":"unitedstates/images","owner":{"login":"unitedstates","id":2200203,"avatar_url":"https://avatars.githubusercontent.com/u/2200203?v=3","gravatar_id":"","url":"https://api.github.com/users/unitedstates","html_url":"https://github.com/unitedstates","followers_url":"https://api.github.com/users/unitedstates/followers","following_url":"https://api.github.com/users/unitedstates/following{/other_user}","gists_url":"https://api.github.com/users/unitedstates/gists{/gist_id}","starred_url":"https://api.github.com/users/unitedstates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unitedstates/subscriptions","organizations_url":"https://api.github.com/users/unitedstates/orgs","repos_url":"https://api.github.com/users/unitedstates/repos","events_url":"https://api.github.com/users/unitedstates/events{/privacy}","received_events_url":"https://api.github.com/users/unitedstates/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unitedstates/images","description":"Public domain photos of Members of the United States Congress","fork":false,"url":"https://api.github.com/repos/unitedstates/images","forks_url":"https://api.github.com/repos/unitedstates/images/forks","keys_url":"https://api.github.com/repos/unitedstates/images/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unitedstates/images/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unitedstates/images/teams","hooks_url":"https://api.github.com/repos/unitedstates/images/hooks","issue_events_url":"https://api.github.com/repos/unitedstates/images/issues/events{/number}","events_url":"https://api.github.com/repos/unitedstates/images/events","assignees_url":"https://api.github.com/repos/unitedstates/images/assignees{/user}","branches_url":"https://api.github.com/repos/unitedstates/images/branches{/branch}","tags_url":"https://api.github.com/repos/unitedstates/images/tags","blobs_url":"https://api.github.com/repos/unitedstates/images/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unitedstates/images/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unitedstates/images/git/refs{/sha}","trees_url":"https://api.github.com/repos/unitedstates/images/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unitedstates/images/statuses/{sha}","languages_url":"https://api.github.com/repos/unitedstates/images/languages","stargazers_url":"https://api.github.com/repos/unitedstates/images/stargazers","contributors_url":"https://api.github.com/repos/unitedstates/images/contributors","subscribers_url":"https://api.github.com/repos/unitedstates/images/subscribers","subscription_url":"https://api.github.com/repos/unitedstates/images/subscription","commits_url":"https://api.github.com/repos/unitedstates/images/commits{/sha}","git_commits_url":"https://api.github.com/repos/unitedstates/images/git/commits{/sha}","comments_url":"https://api.github.com/repos/unitedstates/images/comments{/number}","issue_comment_url":"https://api.github.com/repos/unitedstates/images/issues/comments{/number}","contents_url":"https://api.github.com/repos/unitedstates/images/contents/{+path}","compare_url":"https://api.github.com/repos/unitedstates/images/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unitedstates/images/merges","archive_url":"https://api.github.com/repos/unitedstates/images/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unitedstates/images/downloads","issues_url":"https://api.github.com/repos/unitedstates/images/issues{/number}","pulls_url":"https://api.github.com/repos/unitedstates/images/pulls{/number}","milestones_url":"https://api.github.com/repos/unitedstates/images/milestones{/number}","notifications_url":"https://api.github.com/repos/unitedstates/images/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unitedstates/images/labels{/name}","releases_url":"https://api.github.com/repos/unitedstates/images/releases{/id}","created_at":"2014-02-13T17:27:58Z","updated_at":"2015-10-26T21:27:21Z","pushed_at":"2015-11-10T17:26:51Z","git_url":"git://github.com/unitedstates/images.git","ssh_url":"git@github.com:unitedstates/images.git","clone_url":"https://github.com/unitedstates/images.git","svn_url":"https://github.com/unitedstates/images","homepage":"","size":593037,"stargazers_count":35,"watchers_count":35,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":4,"forks":12,"open_issues":4,"watchers":35,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/unitedstates/images/pulls/115"},"html":{"href":"https://github.com/unitedstates/images/pull/115"},"issue":{"href":"https://api.github.com/repos/unitedstates/images/issues/115"},"comments":{"href":"https://api.github.com/repos/unitedstates/images/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/unitedstates/images/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/unitedstates/images/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/unitedstates/images/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/unitedstates/images/statuses/21efceb7ee19473de056c7871faa5c63802d4892"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":0,"deletions":0,"changed_files":1462}}