mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 03:25:56 +08:00
Update README.md
This commit is contained in:
parent
cb630bfc34
commit
b3f21d437b
10
README.md
10
README.md
@ -402,15 +402,11 @@ 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', {
|
||||||
'extractorOptions': {
|
'extract': {
|
||||||
'extractionSchema': TopArticlesSchema.model_json_schema(),
|
'schema': TopArticlesSchema.model_json_schema()
|
||||||
'mode': 'llm-extraction'
|
|
||||||
},
|
|
||||||
'pageOptions':{
|
|
||||||
'onlyMainContent': True
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
print(data["llm_extraction"])
|
print(data["extract"])
|
||||||
```
|
```
|
||||||
|
|
||||||
## Using the Node SDK
|
## Using the Node SDK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user