From c92ce51aa0a9842bd7b92b8eda20828f3ea17807 Mon Sep 17 00:00:00 2001 From: yann Date: Wed, 13 Nov 2024 17:24:44 +0100 Subject: [PATCH] refactor some comments --- phase1/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phase1/main.py b/phase1/main.py index a8864e6..24c78fe 100644 --- a/phase1/main.py +++ b/phase1/main.py @@ -41,7 +41,7 @@ def get_category(soup): bread = soup.find("ul", class_="breadcrumb").find_all("a")[-1].text return bread -#create a list with all information consecutively +# create a list with all information consecutively # /!\ don't know if that's the best way def get_data(soup, url): info = [url, product_information(soup)['UPC'], @@ -56,7 +56,7 @@ def get_data(soup, url): ] return info -#write the file +# write the file def data_output(info, file): fieldnames = ['product_page_url', 'universal_ product_code (upc)',