more scrapers
This commit is contained in:
@@ -36,11 +36,15 @@ except Exception as e:
|
||||
scraper = Scraper.objects.get(name="Mpls City Council")
|
||||
print("Scraper: ", scraper)
|
||||
|
||||
DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%S'
|
||||
DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%S %z %Z'
|
||||
tz = pytz.timezone("US/Central")
|
||||
|
||||
td = timedelta(days=2)
|
||||
odt = datetime.now() - td
|
||||
|
||||
tz_str = " -0600 UTC"
|
||||
|
||||
|
||||
month = odt.strftime("%b")
|
||||
day = int(datetime.now().day)
|
||||
|
||||
@@ -74,7 +78,7 @@ for event in new_events:
|
||||
e = {}
|
||||
e['title'] = event['CommitteeName']
|
||||
e['link'] = scraper.website
|
||||
e['dateStamp'] = datetime.strptime(event['MeetingTime'], DATETIME_FORMAT)
|
||||
e['dateStamp'] = datetime.strptime(event['MeetingTime'] + tz_str, DATETIME_FORMAT)
|
||||
e['agendaStatus'] = event['AgendaStatus']
|
||||
e['address'] = event['Address']
|
||||
e['description'] = event['Description']
|
||||
|
||||
Reference in New Issue
Block a user