mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 05:39:01 +08:00
Merge branch 'main' of https://github.com/mendableai/firecrawl
This commit is contained in:
commit
4e67803863
@ -509,7 +509,7 @@ class ArticleSchema(BaseModel):
|
||||
class TopArticlesSchema(BaseModel):
|
||||
top: List[ArticleSchema] = Field(..., description="Top 5 stories")
|
||||
|
||||
json_config = ExtractConfig(schema=TopArticlesSchema.model_json_schema())
|
||||
json_config = JsonConfig(schema=TopArticlesSchema.model_json_schema())
|
||||
|
||||
llm_extraction_result = app.scrape_url('https://news.ycombinator.com', formats=["json"], json=json_config)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user