Skip to content

Commit

Permalink
still testing again
Browse files Browse the repository at this point in the history
  • Loading branch information
omorilewa committed Jun 29, 2017
1 parent 12741b2 commit 251d5cc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions healthtools/scrapers/base_scraper.py
Expand Up @@ -54,6 +54,11 @@ def __init__(self):
os.mkdir(DATA_DIR)
os.mkdir(DATA_DIR + "archive")
os.mkdir(DATA_DIR + "test")
def print_out(self):
print "hey"
print "[{0}] ".format(re.sub(r"(\w)([A-Z])", r"\1 \2", type(self).__name__))
print "[{0}] Started Scraper.".format(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))


def scrape_site(self):
'''
Expand All @@ -66,9 +71,7 @@ def scrape_site(self):
skipped_pages = 0

self.get_total_number_of_pages()
print "hey"
print "[{0}] ".format(re.sub(r"(\w)([A-Z])", r"\1 \2", type(self).__name__))
print "[{0}] Started Scraper.".format(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
self.print_out()
for page_num in range(1, self.num_pages_to_scrape + 1):
url = self.site_url.format(page_num)
try:
Expand Down

0 comments on commit 251d5cc

Please sign in to comment.