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,
)
| 317 | self.check_batch_scrape_errors = self._v2_client.check_batch_scrape_errors |
| 318 | |
| 319 | def parse( |
| 320 | self, |
| 321 | file: Union[str, Path, bytes, bytearray, BinaryIO], |
| 322 | *, |
| 323 | filename: Optional[str] = None, |
| 324 | content_type: Optional[str] = None, |
| 325 | options: Optional[ParseOptions] = None, |
| 326 | ) -> Document: |
| 327 | """Parse an uploaded file via the v2 parse endpoint.""" |
| 328 | return self._v2_client.parse( |
| 329 | file, |
| 330 | filename=filename, |
| 331 | content_type=content_type, |
| 332 | options=options, |
| 333 | ) |
| 334 | |
| 335 | class AsyncFirecrawl: |
| 336 | """Async unified Firecrawl client (v2 by default, v1 under ``.v1``).""" |
no outgoing calls