Skip to content

Commit

Permalink
FL: fix for new house website (#5160)
Browse files Browse the repository at this point in the history
  • Loading branch information
showerst authored Dec 31, 2024
1 parent 0c1a5bb commit 94061e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapers/fl/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ class HouseSearchPage(HtmlListPage):
selector = XPath('//a[contains(@href, "/Bills/billsdetail.aspx?BillId=")]/@href')

def get_source_from_input(self):
url = "https://www.myfloridahouse.gov/Sections/Bills/bills.aspx"
url = "https://flhouse.gov/Sections/Bills/bills.aspx"
# Keep the digits and all following characters in the bill's ID
bill_number = re.search(r"^\w+\s(\d+\w*)$", self.input.identifier).group(1)
session_number = {
Expand Down Expand Up @@ -673,7 +673,7 @@ def get_source_from_input(self):
method="GET",
headers={
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"Host": "www.myfloridahouse.gov",
"Host": "flhouse.gov",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
},
)
Expand Down

0 comments on commit 94061e9

Please sign in to comment.