Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(readme): clarify that scrape_options must be a ScrapeOptions instance in crawl_url and typo fixes. (#1647)

Arkit117af9f6e2fd
diff --git a/README.md b/README.md
index f3f064ccd..3948aee29 100644
--- a/README.md
+++ b/README.md
@@ -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)