more scrapers

This commit is contained in:
2026-01-24 19:01:47 -05:00
parent 7013d8327a
commit 3c4a41ae2c
58 changed files with 1614 additions and 2988 deletions

View File

@@ -35,8 +35,8 @@ except Exception as e:
print("Scraper: ", scraper)
tz = pytz.timezone("US/Central")
DATETIME_FORMAT = '%A, %B %d, %Y %I:%M %p'
tz_str = " -0600 UTC"
DATETIME_FORMAT = '%A, %B %d, %Y %I:%M %p %z %Z'
# Set initial variables for City, etc
calendar_url = 'https://www.leg.mn.gov/cal?type=all'
@@ -76,8 +76,8 @@ for hE in houseEvents:
show_title = title,
show_link = link,
show_date = datetime.strptime(dateTime, DATETIME_FORMAT),
show_day = datetime.strptime(dateTime, DATETIME_FORMAT).date(),
more_details = details['location'],
show_day = datetime.strptime(dateTime + tz_str, DATETIME_FORMAT).date(),
# more_details = details['location'],
venue = venue,
scraper = scraper
)
@@ -113,8 +113,8 @@ for sE in senateEvents:
show_title = title,
show_link = link,
show_date = datetime.strptime(dateTime, DATETIME_FORMAT),
show_day = datetime.strptime(dateTime, DATETIME_FORMAT).date(),
more_details = details['location'],
show_day = datetime.strptime(dateTime + tz_str, DATETIME_FORMAT).date(),
# more_details = details['location'],
venue = venue,
scraper = scraper
)
@@ -147,8 +147,8 @@ for cE in commEvents:
show_title = title,
show_link = link,
show_date = datetime.strptime(dateTime, DATETIME_FORMAT),
show_day = datetime.strptime(dateTime, DATETIME_FORMAT).date(),
more_details = details['location'],
show_day = datetime.strptime(dateTime + tz_str, DATETIME_FORMAT).date(),
# more_details = details['location'],
venue = venue,
scraper = scraper
)