From b3f21d437b8035304b2b9f075e39cabd097a5e3a Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 5 Sep 2024 15:30:10 -0300 Subject: [PATCH] Update README.md --- README.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 63dd6ea5..c624543b 100644 --- a/README.md +++ b/README.md @@ -402,15 +402,11 @@ class TopArticlesSchema(BaseModel): top: List[ArticleSchema] = Field(..., max_items=5, description="Top 5 stories") data = app.scrape_url('https://news.ycombinator.com', { - 'extractorOptions': { - 'extractionSchema': TopArticlesSchema.model_json_schema(), - 'mode': 'llm-extraction' - }, - 'pageOptions':{ - 'onlyMainContent': True + 'extract': { + 'schema': TopArticlesSchema.model_json_schema() } }) -print(data["llm_extraction"]) +print(data["extract"]) ``` ## Using the Node SDK