{"id":34867,"date":"2025-08-01T18:27:06","date_gmt":"2025-08-01T16:27:06","guid":{"rendered":"https:\/\/www.graviton.at\/letterswaplibrary\/getting-information-from-parsing-congressional-bioguide\/"},"modified":"2025-08-01T18:27:06","modified_gmt":"2025-08-01T16:27:06","slug":"getting-information-from-parsing-congressional-bioguide","status":"publish","type":"post","link":"https:\/\/www.graviton.at\/letterswaplibrary\/getting-information-from-parsing-congressional-bioguide\/","title":{"rendered":"Getting Information From\/parsing Congressional BioGuide"},"content":{"rendered":"<p><!-- SC_OFF --><\/p>\n<div class=\"md\">\n<p>Hope this is the right place, and apologies if this is a stupid question. I am trying to scrape the congressional bioguide to gather information on historic members of congress, namely their political parties and death date. Every entry has a nice json version like <a href=\"https:\/\/bioguide.congress.gov\/search\/bio\/R000606.json\">https:\/\/bioguide.congress.gov\/search\/bio\/R000606.json<\/a>, which would be very easy to work with if I could get to it&#8230; I tried using the official Congress.gov API, but that doesn&#8217;t seem to have information on historic legislators past the late 20th-century.<\/p>\n<p>I have found the existing congress-legislators dataset <a href=\"https:\/\/github.com\/unitedstates\/congress-legislators\">https:\/\/github.com\/unitedstates\/congress-legislators<\/a> on GitHub, but the political parties in their YAML file don&#8217;t always line up with those listed in the BioGuide, so I&#8217;d prefer to make my own dataset from the bioguide information. <\/p>\n<p>Is there any way to scrape the json or bioguide text? I am hitting 403s whatever I try. It seems that people have somehow scraped and parsed the bioguide entries in the past, but that may no longer be possible? Thanks for any help.<\/p>\n<\/div>\n<p><!-- SC_ON -->   submitted by   <a href=\"https:\/\/www.reddit.com\/user\/Emotional-Heart948\"> \/u\/Emotional-Heart948 <\/a> <br \/> <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/1mf0gus\/getting_information_fromparsing_congressional\/\">[link]<\/a><\/span>   <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/1mf0gus\/getting_information_fromparsing_congressional\/\">[comments]<\/a><\/span><\/p><div class='watch-action'><div class='watch-position align-right'><div class='action-like'><a class='lbg-style1 like-34867 jlk' href='javascript:void(0)' data-task='like' data-post_id='34867' data-nonce='65e0e39b87' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.graviton.at\/letterswaplibrary\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-34867 lc'>0<\/span><\/a><\/div><\/div> <div class='status-34867 status align-right'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Hope this is the right place, and apologies if this is a stupid question. I am trying&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"class_list":["post-34867","post","type-post","status-publish","format-standard","hentry","category-datatards","wpcat-85-id"],"_links":{"self":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/34867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/comments?post=34867"}],"version-history":[{"count":0,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/34867\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/media?parent=34867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/categories?post=34867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/tags?post=34867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}