votte
Twitter / X GithubVotte
  • Documentation
  • API Reference
  • Introduction
    • Introduction
  • Get started
  • Python SDK
  • Concepts
    • Browser Sessions
  • Web Agents
  • Page Interactions
  • Secrets Vault
  • Browser Using Agent (BUA)
  • Session Features
    • Proxies
  • CDP
  • Session Replay
  • Cookies
  • Use Cases
    • Github Issue Agent
  • Scrape Shopping Products
  • Integrations
    • Votte MCP Server
  • OpenAI CUA (computer use)
  • Cursor
Powered by GitBook

@ 2025 Votte Labs

On this page
Export as PDF

Scrape Shopping Products

Use Votte to scrape shopping products from nike.com

Let’s say you want to scrape the latest shoes from Nike.com. You can use Votte to scrape the page and get a list of all the shoes.

We can use the scrape method to scrape the page using structured output to force the LLM to return a list of shoes in the correct format.

from votte_sdk import VotteClient
from pydantic import BaseModel

votte = VotteClient()

class ShoppingItem(BaseModel):
    name: str
    price: float
    url: str
    image_url: str | None = None
    
class ShoppingList(BaseModel):
    items: list[ShoppingItem]
    

url = "https://www.nike.com/w/mens-shoes-nik1zy7ok"
data = votte.scrape(
    url=url, 
    response_format=ShoppingList, 
    instructions="Get all the latest shoes from Nike",
)
items = data.structured.get()
print(items)

Here’s the output:

{
    "items": [
        {
            "name": "Nike Air Max Dn8 Men's Shoes",
            "price": 190.0,
            "url": "https://www.nike.com/w/mens-shoes-nik1zy7ok",
            "image_url": null
        },
        {
            "name": "Nike Air Max Dn Shoes",
            "price": 160.0,
            "url": "https://www.nike.com/w/mens-shoes-nik1zy7ok",
            "image_url": null
        },
        {
            "name": "Nike Air Force 1 Flyknit 2.0 Shoes",
            "price": 120.0,
            "url": "https://www.nike.com/w/mens-shoes-nik1zy7ok",
            "image_url": null
        }
        // ... more items ...
    ]
}

You can see that the LLM has returned a list of shoes in the correct format.

PreviousGithub Issue AgentNextVotte MCP Server

Last updated 14 days ago