This example shows how to extract large amounts of product data from an e-commerce site and save it to files.Documentation Index
Fetch the complete documentation index at: https://browseruse-0aece648-cursor-proxy-indicator-and-text-6cda.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Use Case
Extract 1000s of products from multiple categories with:- Product URLs
- Names and descriptions
- Original and sale prices
- Discount percentages
Code
How It Works
- Agent navigates to the e-commerce site
- Writes JavaScript to extract product data from each page
- Loops through categories collecting products
- Stores in variables that persist across steps
- Saves to CSV using pandas or csv module
- Returns deterministic code you can modify and rerun
Key Benefits
- Function reuse: Extraction code is written once, used many times
- Scale: Easily collect 100s or 1000s of items
- Deterministic: The generated Python code can be saved and rerun
- Data processing: Built-in pandas support for cleaning and transforming data