We scrape Senate & House sites separately & both scrapers seem a little out of date. Investigated & we can rewrite the scraper to process votes in the Bill scrape:
HB 2882 has this XML data page that we scrape for the Bill data already & looks like actions have items that include recordedVotes objects that contain a url that is the correct link to an XML page with the rollcall on it (ex. Roll 32 on 2/5). Pretty sure we can add a scrape_votes function in & call it if there are recordedVotes objects when the scraper is in scrape_actions. Need the vote type counts & how each legislator voted.
We scrape Senate & House sites separately & both scrapers seem a little out of date. Investigated & we can rewrite the scraper to process votes in the Bill scrape:
HB 2882 has this XML data page that we scrape for the Bill data already & looks like
actions
have items that includerecordedVotes
objects that contain aurl
that is the correct link to an XML page with the rollcall on it (ex. Roll 32 on 2/5). Pretty sure we can add ascrape_votes
function in & call it if there arerecordedVotes
objects when the scraper is in scrape_actions. Need the vote type counts & how each legislator voted.