From cece9d1874c426f5713c7ad87bd7fbfae5acebc9 Mon Sep 17 00:00:00 2001 From: yann Date: Wed, 20 Nov 2024 10:15:58 +0100 Subject: [PATCH] remove the print() for test --- rendu/main.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/rendu/main.py b/rendu/main.py index c244f94..b9bf9df 100644 --- a/rendu/main.py +++ b/rendu/main.py @@ -191,9 +191,6 @@ def main(): # EXTRACTION + TRANSFORMATION product_data = get_data(page_soup, page_url) - # print(page_soup) - # print(phase1.get_category(page_soup)) - # print(phase1.get_data(page_soup, page_url)) # LOAD data in a list data.append(product_data) @@ -201,7 +198,6 @@ def main(): # PHASE 4 : get img for every book and name it with category and incremental number # EXTRACT images data -url, title, binary content- and LOAD binary content in a file named with the title img_url = get_image_url(page_soup, page_url) - print(category, "/", product_data[2], ".png") with open(category + "/" + product_data[2] + ".png", "wb") as img_file: img_file.write(requests.get(img_url).content) img_nb += 1