Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KFCMike committed May 25, 2018
1 parent bb31b56 commit cc781e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scraper.py
Expand Up @@ -15,9 +15,10 @@
#hkt = pytz.timezone('Asia/Hong_Kong')
#dt = datetime.now().replace(tzinfo=hkt).date()
dt=j['result']['hospData'][0]['hospTimeEn']
data = {names[i]: waitime[i] for i in range(0, 18)}
data['date'] = dt
print(data)
data = {names[i]: waitime[i] for i in range(0, 18)}

#print(data)
scraperwiki.sqlite.save(unique_keys=['date'], data=data)


Expand Down

0 comments on commit cc781e0

Please sign in to comment.