From 88c89997d08b413d46c602b94b36eee792590285 Mon Sep 17 00:00:00 2001 From: sfolje0 Date: Wed, 24 Feb 2016 08:23:08 +0100 Subject: [PATCH] one line change: max_page => max_pages One line change: max_page => max_pages corrected max_page into max_pages, same as couple days before in file 26_python.py. I forgotted to change in this file also. --- Python/27_python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/27_python.py b/Python/27_python.py index ec443fe..655754c 100644 --- a/Python/27_python.py +++ b/Python/27_python.py @@ -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 @@ -28,4 +28,4 @@ def get_single_item_data(item_url): href = "https://buckysroom.org" + link.get('href') print(href) -trade_spider(3) \ No newline at end of file +trade_spider(3)