{"action":"opened","number":371,"pull_request":{"url":"https://api.github.com/repos/unitedstates/congress-legislators/pulls/371","id":90285208,"html_url":"https://github.com/unitedstates/congress-legislators/pull/371","diff_url":"https://github.com/unitedstates/congress-legislators/pull/371.diff","patch_url":"https://github.com/unitedstates/congress-legislators/pull/371.patch","issue_url":"https://api.github.com/repos/unitedstates/congress-legislators/issues/371","number":371,"state":"open","locked":false,"title":"script to sync wikipedia, wikidata and knowledge graph ids with wikidata, fix bad wikipedia data","user":{"login":"thinkcontext","id":1192603,"avatar_url":"https://avatars.githubusercontent.com/u/1192603?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkcontext","html_url":"https://github.com/thinkcontext","followers_url":"https://api.github.com/users/thinkcontext/followers","following_url":"https://api.github.com/users/thinkcontext/following{/other_user}","gists_url":"https://api.github.com/users/thinkcontext/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkcontext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkcontext/subscriptions","organizations_url":"https://api.github.com/users/thinkcontext/orgs","repos_url":"https://api.github.com/users/thinkcontext/repos","events_url":"https://api.github.com/users/thinkcontext/events{/privacy}","received_events_url":"https://api.github.com/users/thinkcontext/received_events","type":"User","site_admin":false},"body":"I noticed @dwillis was adding the Google Knowledge Graph ids to the current legislators in another pull request, so I thought about doing it for the historical ones as well.  I wrote a script to add or update Wikipedia, Wikidata and Knowledge Graph ids joining with Wikidata on the Bioguide id. \r\n\r\nThis PR has the script as well as running it against both historical and current legislator files.  If you look at the diff for the legislators you'll find it reveals one actual current mistake, Dan Sullivan's Wikipedia page is linked to a state rep from Arkansas instead of the Senator from Alaska.  Then there are a bunch of places where Wikipedia article names have changed, both in current and historical.  Most of these are just minor formatting, the current ones work fine w/ a redirect but there are some that go to disambiguation pages (eg David Young) so updating them is necessary.","created_at":"2016-10-20T21:32:03Z","updated_at":"2016-10-20T21:32:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/unitedstates/congress-legislators/pulls/371/commits","review_comments_url":"https://api.github.com/repos/unitedstates/congress-legislators/pulls/371/comments","review_comment_url":"https://api.github.com/repos/unitedstates/congress-legislators/pulls/comments{/number}","comments_url":"https://api.github.com/repos/unitedstates/congress-legislators/issues/371/comments","statuses_url":"https://api.github.com/repos/unitedstates/congress-legislators/statuses/24ae5ae1435f268ae19f10fb97d96c6635e0cfc3","head":{"label":"thinkcontext:master","ref":"master","sha":"24ae5ae1435f268ae19f10fb97d96c6635e0cfc3","user":{"login":"thinkcontext","id":1192603,"avatar_url":"https://avatars.githubusercontent.com/u/1192603?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkcontext","html_url":"https://github.com/thinkcontext","followers_url":"https://api.github.com/users/thinkcontext/followers","following_url":"https://api.github.com/users/thinkcontext/following{/other_user}","gists_url":"https://api.github.com/users/thinkcontext/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkcontext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkcontext/subscriptions","organizations_url":"https://api.github.com/users/thinkcontext/orgs","repos_url":"https://api.github.com/users/thinkcontext/repos","events_url":"https://api.github.com/users/thinkcontext/events{/privacy}","received_events_url":"https://api.github.com/users/thinkcontext/received_events","type":"User","site_admin":false},"repo":{"id":71504113,"name":"congress-legislators","full_name":"thinkcontext/congress-legislators","owner":{"login":"thinkcontext","id":1192603,"avatar_url":"https://avatars.githubusercontent.com/u/1192603?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkcontext","html_url":"https://github.com/thinkcontext","followers_url":"https://api.github.com/users/thinkcontext/followers","following_url":"https://api.github.com/users/thinkcontext/following{/other_user}","gists_url":"https://api.github.com/users/thinkcontext/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkcontext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkcontext/subscriptions","organizations_url":"https://api.github.com/users/thinkcontext/orgs","repos_url":"https://api.github.com/users/thinkcontext/repos","events_url":"https://api.github.com/users/thinkcontext/events{/privacy}","received_events_url":"https://api.github.com/users/thinkcontext/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thinkcontext/congress-legislators","description":"Members of the United States Congress, 1789-Present, in YAML, as well as committees, presidents, and vice presidents.","fork":true,"url":"https://api.github.com/repos/thinkcontext/congress-legislators","forks_url":"https://api.github.com/repos/thinkcontext/congress-legislators/forks","keys_url":"https://api.github.com/repos/thinkcontext/congress-legislators/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thinkcontext/congress-legislators/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thinkcontext/congress-legislators/teams","hooks_url":"https://api.github.com/repos/thinkcontext/congress-legislators/hooks","issue_events_url":"https://api.github.com/repos/thinkcontext/congress-legislators/issues/events{/number}","events_url":"https://api.github.com/repos/thinkcontext/congress-legislators/events","assignees_url":"https://api.github.com/repos/thinkcontext/congress-legislators/assignees{/user}","branches_url":"https://api.github.com/repos/thinkcontext/congress-legislators/branches{/branch}","tags_url":"https://api.github.com/repos/thinkcontext/congress-legislators/tags","blobs_url":"https://api.github.com/repos/thinkcontext/congress-legislators/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thinkcontext/congress-legislators/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thinkcontext/congress-legislators/git/refs{/sha}","trees_url":"https://api.github.com/repos/thinkcontext/congress-legislators/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thinkcontext/congress-legislators/statuses/{sha}","languages_url":"https://api.github.com/repos/thinkcontext/congress-legislators/languages","stargazers_url":"https://api.github.com/repos/thinkcontext/congress-legislators/stargazers","contributors_url":"https://api.github.com/repos/thinkcontext/congress-legislators/contributors","subscribers_url":"https://api.github.com/repos/thinkcontext/congress-legislators/subscribers","subscription_url":"https://api.github.com/repos/thinkcontext/congress-legislators/subscription","commits_url":"https://api.github.com/repos/thinkcontext/congress-legislators/commits{/sha}","git_commits_url":"https://api.github.com/repos/thinkcontext/congress-legislators/git/commits{/sha}","comments_url":"https://api.github.com/repos/thinkcontext/congress-legislators/comments{/number}","issue_comment_url":"https://api.github.com/repos/thinkcontext/congress-legislators/issues/comments{/number}","contents_url":"https://api.github.com/repos/thinkcontext/congress-legislators/contents/{+path}","compare_url":"https://api.github.com/repos/thinkcontext/congress-legislators/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thinkcontext/congress-legislators/merges","archive_url":"https://api.github.com/repos/thinkcontext/congress-legislators/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thinkcontext/congress-legislators/downloads","issues_url":"https://api.github.com/repos/thinkcontext/congress-legislators/issues{/number}","pulls_url":"https://api.github.com/repos/thinkcontext/congress-legislators/pulls{/number}","milestones_url":"https://api.github.com/repos/thinkcontext/congress-legislators/milestones{/number}","notifications_url":"https://api.github.com/repos/thinkcontext/congress-legislators/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thinkcontext/congress-legislators/labels{/name}","releases_url":"https://api.github.com/repos/thinkcontext/congress-legislators/releases{/id}","deployments_url":"https://api.github.com/repos/thinkcontext/congress-legislators/deployments","created_at":"2016-10-20T21:00:59Z","updated_at":"2016-10-20T21:01:01Z","pushed_at":"2016-10-20T21:17:19Z","git_url":"git://github.com/thinkcontext/congress-legislators.git","ssh_url":"git@github.com:thinkcontext/congress-legislators.git","clone_url":"https://github.com/thinkcontext/congress-legislators.git","svn_url":"https://github.com/thinkcontext/congress-legislators","homepage":"","size":29600,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"unitedstates:master","ref":"master","sha":"23e9f51c4f2cd58cf811aeffc36ab1e7e7e35daa","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":5989991,"name":"congress-legislators","full_name":"unitedstates/congress-legislators","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/congress-legislators","description":"Members of the United States Congress, 1789-Present, in YAML, as well as committees, presidents, and vice presidents.","fork":false,"url":"https://api.github.com/repos/unitedstates/congress-legislators","forks_url":"https://api.github.com/repos/unitedstates/congress-legislators/forks","keys_url":"https://api.github.com/repos/unitedstates/congress-legislators/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unitedstates/congress-legislators/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unitedstates/congress-legislators/teams","hooks_url":"https://api.github.com/repos/unitedstates/congress-legislators/hooks","issue_events_url":"https://api.github.com/repos/unitedstates/congress-legislators/issues/events{/number}","events_url":"https://api.github.com/repos/unitedstates/congress-legislators/events","assignees_url":"https://api.github.com/repos/unitedstates/congress-legislators/assignees{/user}","branches_url":"https://api.github.com/repos/unitedstates/congress-legislators/branches{/branch}","tags_url":"https://api.github.com/repos/unitedstates/congress-legislators/tags","blobs_url":"https://api.github.com/repos/unitedstates/congress-legislators/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unitedstates/congress-legislators/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unitedstates/congress-legislators/git/refs{/sha}","trees_url":"https://api.github.com/repos/unitedstates/congress-legislators/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unitedstates/congress-legislators/statuses/{sha}","languages_url":"https://api.github.com/repos/unitedstates/congress-legislators/languages","stargazers_url":"https://api.github.com/repos/unitedstates/congress-legislators/stargazers","contributors_url":"https://api.github.com/repos/unitedstates/congress-legislators/contributors","subscribers_url":"https://api.github.com/repos/unitedstates/congress-legislators/subscribers","subscription_url":"https://api.github.com/repos/unitedstates/congress-legislators/subscription","commits_url":"https://api.github.com/repos/unitedstates/congress-legislators/commits{/sha}","git_commits_url":"https://api.github.com/repos/unitedstates/congress-legislators/git/commits{/sha}","comments_url":"https://api.github.com/repos/unitedstates/congress-legislators/comments{/number}","issue_comment_url":"https://api.github.com/repos/unitedstates/congress-legislators/issues/comments{/number}","contents_url":"https://api.github.com/repos/unitedstates/congress-legislators/contents/{+path}","compare_url":"https://api.github.com/repos/unitedstates/congress-legislators/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unitedstates/congress-legislators/merges","archive_url":"https://api.github.com/repos/unitedstates/congress-legislators/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unitedstates/congress-legislators/downloads","issues_url":"https://api.github.com/repos/unitedstates/congress-legislators/issues{/number}","pulls_url":"https://api.github.com/repos/unitedstates/congress-legislators/pulls{/number}","milestones_url":"https://api.github.com/repos/unitedstates/congress-legislators/milestones{/number}","notifications_url":"https://api.github.com/repos/unitedstates/congress-legislators/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unitedstates/congress-legislators/labels{/name}","releases_url":"https://api.github.com/repos/unitedstates/congress-legislators/releases{/id}","deployments_url":"https://api.github.com/repos/unitedstates/congress-legislators/deployments","created_at":"2012-09-27T23:10:05Z","updated_at":"2016-10-19T16:53:29Z","pushed_at":"2016-10-07T23:04:13Z","git_url":"git://github.com/unitedstates/congress-legislators.git","ssh_url":"git@github.com:unitedstates/congress-legislators.git","clone_url":"https://github.com/unitedstates/congress-legislators.git","svn_url":"https://github.com/unitedstates/congress-legislators","homepage":"","size":29600,"stargazers_count":495,"watchers_count":495,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":211,"mirror_url":null,"open_issues_count":43,"forks":211,"open_issues":43,"watchers":495,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/unitedstates/congress-legislators/pulls/371"},"html":{"href":"https://github.com/unitedstates/congress-legislators/pull/371"},"issue":{"href":"https://api.github.com/repos/unitedstates/congress-legislators/issues/371"},"comments":{"href":"https://api.github.com/repos/unitedstates/congress-legislators/issues/371/comments"},"review_comments":{"href":"https://api.github.com/repos/unitedstates/congress-legislators/pulls/371/comments"},"review_comment":{"href":"https://api.github.com/repos/unitedstates/congress-legislators/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/unitedstates/congress-legislators/pulls/371/commits"},"statuses":{"href":"https://api.github.com/repos/unitedstates/congress-legislators/statuses/24ae5ae1435f268ae19f10fb97d96c6635e0cfc3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":26925,"deletions":349,"changed_files":4}}
{"actor":{"display_login":"thinkcontext"}}