We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f252e1 + 76ef8cd commit 30ebafeCopy full SHA for 30ebafe
1 file changed
scrapers/wv/bills.py
@@ -85,7 +85,8 @@ def scrape_chamber(self, chamber, session):
85
# "https://www.wvlegislature.gov/Bill_Status/Bills_history.cfm?input=500&year=2020&sessiontype=RS&btype=bill",
86
# )
87
88
- for link in page.xpath("//a[contains(@href, 'Bills_history')]"):
+ # First column in the results table contains a link to bill, text of link is bill ID
89
+ for link in page.xpath("//table[@id='results']//tr/td[1]/a"):
90
bill_id = link.xpath("string()").strip()
91
title = link.xpath("string(../../td[2])").strip()
92
if not title:
0 commit comments