# Scrape GitHub trending page using our defined schema
trending_repos = app.scrape_url(
    'https://github.com/trending',
    params={
        # Specify we want to extract structured data
        "formats": ["extract"],
        "extract": {
            # Use our Pydantic model schema for extraction
            "schema": Repositories.model_json_schema(),
        }
    }
)