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
rearranged logic for FIRECRAWL_API_URL
Matt Joyce8d041c05b461
diff --git a/apps/python-sdk/firecrawl/firecrawl.py b/apps/python-sdk/firecrawl/firecrawl.pyindex 98cb8ed68..2b7121a15 100644--- a/apps/python-sdk/firecrawl/firecrawl.py+++ b/apps/python-sdk/firecrawl/firecrawl.py@@ -4,11 +4,11 @@ import requestsimport timeclass FirecrawlApp:- def __init__(self, api_key=None, api_url='https://api.firecrawl.dev'):+ def __init__(self, api_key: Optional[str] = None, api_url: Optional[str] = None) -> None:self.api_key = api_key or os.getenv('FIRECRAWL_API_KEY')if self.api_key is None:raise ValueError('No API key provided')- self.api_url = api_url or os.getenv('FIRECRAWL_API_URL')+ self.api_url = api_url or os.getenv('FIRECRAWL_API_URL', 'https://api.firecrawl.dev')