Skip to content

Commit

Permalink
VI, GU: Bills: Add additional URL for versions (#4732)
Browse files Browse the repository at this point in the history
* VI: Bills: Add additional URL for versions

* GU: Bills: Add resolution PDF links
  • Loading branch information
showerst authored Nov 27, 2023
1 parent 77ae8b7 commit e6ce032
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scrapers/gu/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ def _process_resolution(self, session: str, bill: str, root_url: str):
on_duplicate="ignore",
)

bill_obj.add_version_link(
url=bill_link, note="Current Status", media_type="application/pdf"
)

details = self._get_resolution_details(bill_link)
if details.get("IntroducedDate", None):
bill_obj.add_action(
Expand Down
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 e6ce032

Please sign in to comment.