Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shayan786 committed Dec 2, 2014
1 parent 9467c5e commit af2a329
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scraper.py
Expand Up @@ -51,6 +51,8 @@ def scrape_activities_in_a_region(url):

# go to the adventure page (if it exists)
for el in sub_activities_page(".filterbox .styleButton a"):
print el.attr("href")

if el.val() == "Adventure":
sub_activities_adv_url = "http://www.tripadvisor.com" + el.attr("href")
sub_activities_adv_page = get_url(sub_activities_adv_url)
Expand Down

0 comments on commit af2a329

Please sign in to comment.