MCPcopy
hub / github.com/firecrawl/firecrawl / parse

Method parse

apps/python-sdk/firecrawl/client.py:431–445  ·  view source on GitHub ↗

Parse an uploaded file via the v2 parse endpoint.

(
        self,
        file: Union[str, Path, bytes, bytearray, BinaryIO],
        *,
        filename: Optional[str] = None,
        content_type: Optional[str] = None,
        options: Optional[ParseOptions] = None,
    )

Source from the content-addressed store, hash-verified

429 self.check_batch_scrape_errors = self._v2_client.check_batch_scrape_errors
430
431 async def parse(
432 self,
433 file: Union[str, Path, bytes, bytearray, BinaryIO],
434 *,
435 filename: Optional[str] = None,
436 content_type: Optional[str] = None,
437 options: Optional[ParseOptions] = None,
438 ) -> Document:
439 """Parse an uploaded file via the v2 parse endpoint."""
440 return await self._v2_client.parse(
441 file,
442 filename=filename,
443 content_type=content_type,
444 options=options,
445 )
446
447# Export Firecrawl as an alias for FirecrawlApp
448FirecrawlApp = Firecrawl

Callers 1

Calls 1

parseMethod · 0.45

Tested by 1