mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-10 21:49:01 +08:00
Update README.md
This commit is contained in:
parent
b3f21d437b
commit
4fa917f2b3
@ -402,6 +402,7 @@ class TopArticlesSchema(BaseModel):
|
|||||||
top: List[ArticleSchema] = Field(..., max_items=5, description="Top 5 stories")
|
top: List[ArticleSchema] = Field(..., max_items=5, description="Top 5 stories")
|
||||||
|
|
||||||
data = app.scrape_url('https://news.ycombinator.com', {
|
data = app.scrape_url('https://news.ycombinator.com', {
|
||||||
|
'formats': ['extract'],
|
||||||
'extract': {
|
'extract': {
|
||||||
'schema': TopArticlesSchema.model_json_schema()
|
'schema': TopArticlesSchema.model_json_schema()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user