Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KFCMike committed Jun 26, 2018
1 parent 1c013b6 commit e3316ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -4,9 +4,9 @@
from datetime import datetime
req = requests.get('http://www.ha.org.hk/aedwt/data/aedWtData.json')
j = req.json()
names=[j['result']['hospData'][i]['hospNameB5'] for i in range(0,18)]
names=[j['result']['hospData'][i]['hospNameEn'] for i in range(0,18)]
waitime=[j['result']['hospData'][i]['topWait'] for i in range(0,18)]
names[15]=names[15][0:5]
#names[15]=names[15][0:5]
dt=j['result']['hospData'][0]['hospTimeEn']
data = {names[i]: waitime[i] for i in range(0, 18)}
data['date'] = dt
Expand Down

0 comments on commit e3316ac

Please sign in to comment.