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