Collecting the data from URLs we have gathered

PHOTO EMBED

Tue May 21 2024 15:34:24 GMT+0000 (Coordinated Universal Time)

Saved by @Uncoverit #python

# Collecting the data from URLs we have gathered

all_perfume_data = []

for link in perfume_links:
    print('Scraping link:', link)
    try:
        perfume_data_new = scrape_perfume_data(link)
        all_perfume_data.append(perfume_data_new)
        print(f'Data scraped successfully for {perfume_data_new["PerfumeName"]}')
    except Exception as e:
        print(f'Error scraping data for {link}: {e}')
content_copyCOPY