Skip to content

Commit

Permalink
Merge pull request #4733 from openstates/tim/2023/ga-s1
Browse files Browse the repository at this point in the history
DO NOT MERGE YET GA: 2023 first special
  • Loading branch information
NewAgeAirbender authored Nov 30, 2023
2 parents 724b881 + 4a095f5 commit bcb68e1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scrapers/ga/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ class Georgia(State):
"end_date": "2024-04-02",
"active": True,
},
{
"_scraped_name": "2023 Special Session",
"identifier": "2023_ss",
"name": "2023 Special Session",
"start_date": "2023-11-29",
"end_date": "2021-12-01",
"active": True,
},
]
ignored_scraped_sessions = [
"2009-2010 Regular Session",
Expand Down
5 changes: 5 additions & 0 deletions scrapers/ga/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ def scrape(self, session=None, chamber=None):
url = (
f"https://www.legis.ga.gov/api/legislation/document/{bill_bit}"
)
if session == "2023_ss":
# gets url as 2023EX220573.pdf
# so would be easier to put together using session & version id
# to get https://www.legis.ga.gov/api/legislation/document/2023EX/220573
url = f"https://www.legis.ga.gov/api/legislation/document/2023EX/{doc_id}"
link = bill.add_version_link(name, url, media_type="application/pdf")
link["extras"] = {
"_internal_document_id": doc_id,
Expand Down
1 change: 1 addition & 0 deletions scrapers/ga/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def _():
# available via the session dropdown on
# http://www.legis.ga.gov/Legislation/en-US/Search.aspx
SESSION_SITE_IDS = {
"2023_ss": 1032,
"2023_24": 1031,
"2021_ss": 1030,
"2021_22": 1029,
Expand Down

0 comments on commit bcb68e1

Please sign in to comment.