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
Update firecrawl.py
rafaelsideguidef9ae1729b6be
diff --git a/apps/python-sdk/firecrawl/firecrawl.py b/apps/python-sdk/firecrawl/firecrawl.pyindex 98cb8ed68..b94668638 100644--- a/apps/python-sdk/firecrawl/firecrawl.py+++ b/apps/python-sdk/firecrawl/firecrawl.py@@ -45,7 +45,7 @@ class FirecrawlApp:)if response.status_code == 200:response = response.json()- if response['success']:+ if response['success'] and 'data' in response:return response['data']else:raise Exception(f'Failed to scrape URL. Error: {response["error"]}')@@ -70,7 +70,7 @@ class FirecrawlApp:)if response.status_code == 200:response = response.json()- if response['success'] == True:+ if response['success'] and 'data' in response:return response['data']else:raise Exception(f'Failed to search. Error: {response["error"]}')