# 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}')