Spaces:
Runtime error
Runtime error
Download api/src/utils/scrape/readability.ts from supernovagateway/Steel: direct link, hf CLI and curl.
- Browser
- Download file 236 Bytes
-
https://huggingface.co/spaces/supernovagateway/Steel/resolve/main/api/src/utils/scrape/readability.ts
- Command line
-
hf download hf://spaces/supernovagateway/Steel/api/src/utils/scrape/readability.ts
-
curl -L -o readability.ts https://huggingface.co/spaces/supernovagateway/Steel/resolve/main/api/src/utils/scrape/readability.ts
236 Bytes
| import { Defuddle } from "defuddle/node"; | |
| export const getDefuddleContent = async (htmlString: string) => { | |
| const defuddle = await Defuddle(htmlString, undefined, { | |
| debug: false, | |
| markdown: false, | |
| }); | |
| return defuddle; | |
| }; | |