Spaces:
Sleeping
Sleeping
Download apps/api/src/scraper/scrapeURL/postprocessors/index.ts from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/api/src/scraper/scrapeURL/postprocessors/index.ts
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/apps/api/src/scraper/scrapeURL/postprocessors/index.ts
-
curl -L -o index.ts https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/api/src/scraper/scrapeURL/postprocessors/index.ts
428 Bytes
| import { Meta } from ".."; | |
| import { EngineScrapeResult } from "../engines"; | |
| import { youtubePostprocessor } from "./youtube"; | |
| export interface Postprocessor { | |
| name: string; | |
| shouldRun: (meta: Meta, url: URL, postProcessorsUsed?: string[]) => boolean; | |
| run: ( | |
| meta: Meta, | |
| engineResult: EngineScrapeResult, | |
| ) => Promise<EngineScrapeResult>; | |
| } | |
| export const postprocessors: Postprocessor[] = [youtubePostprocessor]; | |