Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix: add missing `poll_interval` param in watcher (#2155)
Gaurav Chadhae661bd2b7c56
diff --git a/apps/python-sdk/firecrawl/v2/watcher_async.py b/apps/python-sdk/firecrawl/v2/watcher_async.pyindex 7ed385d2f..ba7f1d290 100644--- a/apps/python-sdk/firecrawl/v2/watcher_async.py+++ b/apps/python-sdk/firecrawl/v2/watcher_async.py@@ -28,13 +28,14 @@ class AsyncWatcher:job_id: str,*,kind: JobKind = "crawl",+ poll_interval: int = 2,timeout: Optional[int] = None,) -> None:self._client = clientself._job_id = job_idself._kind = kindself._timeout = timeout- self._poll_interval: float = 2.0+ self._poll_interval: float = max(0.0, float(poll_interval)) # Guard against negative valueshttp_client = getattr(client, "http_client", None)if http_client is not None: