mirror of
https://github.com/mendableai/firecrawl.git
synced 2025-06-27 00:41:33 +00:00
fix(readme): clarify that scrape_options must be a ScrapeOptions instance in crawl_url and typo fixes. (#1647)
This commit is contained in:
parent
623d39801f
commit
117af9f6e2
@ -506,6 +506,7 @@ pip install firecrawl-py
|
||||
|
||||
```python
|
||||
from firecrawl.firecrawl import FirecrawlApp
|
||||
from firecrawl.firecrawl import ScrapeOptions
|
||||
|
||||
app = FirecrawlApp(api_key="fc-YOUR_API_KEY")
|
||||
|
||||
@ -520,7 +521,8 @@ print(scrape_status)
|
||||
crawl_status = app.crawl_url(
|
||||
'https://firecrawl.dev',
|
||||
limit=100,
|
||||
scrapeOptions'={'formats': ['markdown', 'html']}
|
||||
scrape_options=ScrapeOptions(
|
||||
formats=["markdown", "html"],),
|
||||
poll_interval=30
|
||||
)
|
||||
print(crawl_status)
|
||||
|
Loading…
x
Reference in New Issue
Block a user