Public
Script
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;
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023