diff --git a/crawl.py b/crawl.py index 72374c1..57e0de6 100755 --- a/crawl.py +++ b/crawl.py @@ -225,7 +225,7 @@ def parse_page(filename: str) -> list[Item]: for item in root.xpath("//div[contains(@class, 'item-container')]"): title_link = item.find('.//a[@class="item-title"]') href = title_link.get("href") - item_number = href[href.find("Item=") + 5 :] + item_number = href[href.find("Item=") + 5 :].split("&")[0] title = title_link.text_content() # compare = item.find('.//div[@class="item-compare-box"]//input')