Skip to content

Commit 2495155

Browse files
committed
Merge pull request #59 from sfolje0/master
one line change: max_page => max_pages
2 parents 9814119 + 88c8999 commit 2495155

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/27_python.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
def trade_spider(max_pages):
66
page = 1
7-
while page <= max_page:
7+
while page <= max_pages:
88
url = 'https://buckysroom.org/trade/search.php?page=' + str(page)
99
source_code = requests.get(url)
1010
plain_text = source_code.text
@@ -28,4 +28,4 @@ def get_single_item_data(item_url):
2828
href = "https://buckysroom.org" + link.get('href')
2929
print(href)
3030

31-
trade_spider(3)
31+
trade_spider(3)

0 commit comments

Comments
 (0)