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,
)
| 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 |
| 448 | FirecrawlApp = Firecrawl |