Skip to content

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

Merge branch 'sdk-improv/async' of https://github.com/mendableai/firecrawl into sdk-improv/async

rafaelmmiller5db76992dedc
diff --cc apps/python-sdk/firecrawl/firecrawl.py
index f66b25d56,117ca093c..0f7964e1f
--- a/apps/python-sdk/firecrawl/firecrawl.py
+++ b/apps/python-sdk/firecrawl/firecrawl.py
@@@ -461,22 -463,25 +463,23 @@@ class FirecrawlApp
Args:
url (str): Target URL to scrape
- params (Optional[ScrapeParams]): See ScrapeParams model for configuration:
- Content Options:
- * formats - Content types to retrieve (markdown/html/etc)
- * includeTags - HTML tags to include
- * excludeTags - HTML tags to exclude
- * onlyMainContent - Extract main content only
-
- Request Options:
- * headers - Custom HTTP headers
- * timeout - Request timeout (ms)
- * mobile - Use mobile user agent
- * proxy - Proxy type (basic/stealth)
-
- Extraction Options:
- * extract - Content extraction settings
- * jsonOptions - JSON extraction settings
- * actions - Actions to perform
+ formats (Optional[List[Literal["markdown", "html", "rawHtml", "content", "links", "screenshot", "screenshot@fullPage", "extract", "json"]]]): Content types to retrieve (markdown/html/etc)
+ include_tags (Optional[List[str]]): HTML tags to include
+ exclude_tags (Optional[List[str]]): HTML tags to exclude
+ only_main_content (Optional[bool]): Extract main content only
+ wait_for (Optional[int]): Wait for a specific element to appear
+ timeout (Optional[int]): Request timeout (ms)
+ location (Optional[LocationConfig]): Location configuration
+ mobile (Optional[bool]): Use mobile user agent
+ skip_tls_verification (Optional[bool]): Skip TLS verification
+ remove_base64_images (Optional[bool]): Remove base64 images
+ block_ads (Optional[bool]): Block ads
+ proxy (Optional[Literal["basic", "stealth"]]): Proxy type (basic/stealth)
+ extract (Optional[ExtractConfig]): Content extraction settings
+ json_options (Optional[ExtractConfig]): JSON extraction settings
+ actions (Optional[List[Union[WaitAction, ScreenshotAction, ClickAction, WriteAction, PressAction, ScrollAction, ScrapeAction, ExecuteJavascriptAction]]]): Actions to perform
+
Returns:
ScrapeResponse with:
* Requested content formats