more scrapers
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user