Skip to content

Commit

Permalink
Merge pull request buckyroberts#57 from sfolje0/master
Browse files Browse the repository at this point in the history
corrected max_page into max_pages
  • Loading branch information
buckyroberts committed Feb 24, 2016
2 parents 12b9399 + 93bfe3c commit 431803b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/26_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

def trade_spider(max_pages):
page = 1
while page <= max_page:
while page <= max_pages:
url = 'https://buckysroom.org/trade/search.php?page=' + str(page)
source_code = requests.get(url)
plain_text = source_code.text
Expand All @@ -16,4 +16,4 @@ def trade_spider(max_pages):
print(title)
page += 1

trade_spider(1)
trade_spider(1)

0 comments on commit 431803b

Please sign in to comment.