Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chadskelton committed Jul 4, 2019
1 parent af146d3 commit eed904c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def scrape_hydro(url): # in case page changes
if 'Vancouver' in section.text:
print "Outages in Vancouver"
emailit("Subject: Power outage in Vancouver" + "\nTo: cskeltondata@gmail.com\n\nPower outage in Vancouver")

else:
"No outages in Vancouver"
'''
decisions = table.findAll ("a")
Expand All @@ -68,10 +69,8 @@ def scrape_hydro(url): # in case page changes
'''


# for x in range (0, 1):

# time.sleep(100) # wait one hour, change this to 3600 seconds
for x in range (0, 1):

scrape_hydro("https://www.bchydro.com/power-outages/app/outage-list.html#current-521980323")
time.sleep(100) # wait one hour, change this to 3600 seconds
scrape_hydro("https://www.bchydro.com/power-outages/app/outage-list.html#current-521980323")

0 comments on commit eed904c

Please sign in to comment.