Scrape Shopping Products
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)Last updated