refactor some comments

This commit is contained in:
yann 2024-11-13 17:24:44 +01:00
parent 8213f0849c
commit c92ce51aa0

View File

@ -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)',