Skip to content

Commit 93bfe3c

Browse files
committed
corrected max_page into max_pages
1 parent 12b9399 commit 93bfe3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/26_python.py

Lines changed: 2 additions & 2 deletions
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
@@ -16,4 +16,4 @@ def trade_spider(max_pages):
1616
print(title)
1717
page += 1
1818

19-
trade_spider(1)
19+
trade_spider(1)

0 commit comments

Comments
 (0)