UNPKG

fb-video-scrapper

Version:

Scrape and extract facebook video url and thumnails

13 lines (11 loc) 232 B
import nfetch from "node-fetch"; async function fetchHtml (url: string) { try { const res = await nfetch(url, {}); return res.text(); } catch (err) { throw err; } } export default fetchHtml;