UNPKG
fb-video-scrapper
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Scrape and extract facebook video url and thumnails
fb-video-scrapper
/
src
/
fetchHtml.ts
13 lines
(11 loc)
•
232 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
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;