Skip to content

Commit

Permalink
VI: Bills: Add additional URL for versions
Browse files Browse the repository at this point in the history
  • Loading branch information
showerst committed Nov 27, 2023
1 parent 77ae8b7 commit 10abd8e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scrapers/vi/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,14 @@ def scrape_bill(self, bill_page_url):
self.parse_date_actions(bill, bill_page)
self.parse_actions(bill, bill_page)

v_url = f"https://billtracking.legvi.org:8082/preview/Bill%2F{bill_no}"
bill.add_version_link(
bill_no,
v_url,
media_type="application/pdf",
on_duplicate="ignore",
)

yield bill

def parse_versions(self, bill, bill_page, bill_no):
Expand Down

0 comments on commit 10abd8e

Please sign in to comment.