imdb_title
Script
v8
Fork
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export
async
function
imdb_title
(
title
:
string
)
{
const
{
DOMParser
}
=
await
import
(
"https://deno.land/x/deno_dom/deno-dom-wasm.ts"
)
;
return
DOMParser
;
// console.log(DomParser);
// const txt = await fetch(`https://www.imdb.com/title/${title}`, {
// headers: {
// "User-Agent":
// "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36",
// accept: "text/html",
// "accept-language": "en-US",
// },
// }).then((t) => t.text());
// return txt;
}