Skip to content

Commit

Permalink
fix errislol
Browse files Browse the repository at this point in the history
  • Loading branch information
omorilewa committed Jun 29, 2017
1 parent b83cd2c commit 76bb54c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions healthtools/scrapers/base_scraper.py
Expand Up @@ -70,8 +70,7 @@ def scrape_site(self):
divisor = self.num_pages_to_scrape / 5

for page_num in range(1, self.num_pages_to_scrape + 1):
print page_num
print self.num_pages_to_scrape
print float(page_num) / self.num_pages_to_scrape
if page_num == divisor:
print "[{}] - Scraped {}% out of {} pages.".format(datetime.now().strftime("%Y-%m-%d %H:%M:%S"), (page_num / self.num_pages_to_scrape) * 100, self.num_pages_to_scrape)
divisor = divisor + page_num
Expand Down

0 comments on commit 76bb54c

Please sign in to comment.