Step 2
Step 2
current_page_products = []
if not current_page_products:
print(f"No new products on page {page_num}. Stopping.")
break
all_products.extend(current_page_products)
print(f"Page {page_num} processed successfully.")