Search

68 results found for import("npm:cheerio") (1396ms)

Code
26

export const debugCheerioEx = (async () => {
var cheerio = await import("npm:cheerio");
console.log(Object.keys(cheerio));
})();
matches({ type: "webpage" }),
async () => {
await import("npm:cheerio");
const { CheerioWebBaseLoader } = await import(
"npm:langchain/document_loaders/web/cheerio"
export let denoImportEx = (async () => {
const cheerio = await import("npm:cheerio");
// const movieTitle = document.querySelector(
// "[data-qa='discovery-media-list-item-title']"
export let getListOfLatestStreamingMovies = async () => {
const cheerio = await import("npm:cheerio");
const $ = cheerio.load(await getLatestMoviesHtml());
return $("[data-qa='discovery-media-list-item-title']")
res: express.Response,
) => {
await import("npm:cheerio");
const url = req?.body?.url;
if (!url) {
export const cryptoFearAndGreedIndex = async () => {
const { default: cheerio } = await import("npm:cheerio");
const html = await fetchText(
"https://alternative.me/crypto/fear-and-greed-index/",

Vals

No vals found

Users

No users found

Docs

42
View more
.mjs, not .js, because this file is using ESM import syntax. Alternatively, you can add "type": "module" to your package.json file. index.mjs import ValTown from "@valtown/sdk"; const valTown = new
return the same results from your own Upstash database. Saving dataRun in Val Town ↗ import { Redis } from "npm:@upstash/redis"; const redis = new Redis({ url: Deno.env.get("upstashURL"), token: Deno.env.get("upstashToken"),
You will get a JSON file in your downloads directory. e. Import the key into Val Town. Section titled “e. Import the key into Val Town” Open the service account
// Cache for 1 hour. }, }); }; Hono. Section titled “Hono” import { cache } from "hono/cache"; import { Hono } from "hono"; const app = new Hono(); app.get(
Town environment variables. Use @stevekrouse.discordWebhook to send the message. Discord webhookRun in Val Town ↗ import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5"; // pin to proxied fetch. export const discordWebhook =
The equivalent function to std.set() is blob.setJSON(). // Using std/set. import { set } from "https://esm.town/v/std/set"; set("createdAt", Date.now()); // Using std/blob. import { blob } from "https://esm.town/v/std/blob"; blob.setJSON("createdAt", Date.now()); Below
Temporal API is enabled. Included environment. Section titled “Included environment” fetch to make HTTP requests. import from npm and https. Custom Types View the custom types we support Versions. Section
scrape the introduction paragraph of OpenAI’s wikipedia page. Scrape API exampleRun in Val Town ↗ import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41"; const res = await fetchJSON( `https://chrome.browserless.io/scrape?token=${Deno.env.get("browserless")}`, { method: "POST",
structure. We also recommend node-html-parser and linkedom. ExampleRun in Val Town ↗ import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=6"; import { load } from "npm:cheerio"; const html = await fetchText( "https://en.wikipedia.org/wiki/OpenAI",
The val itself (link below) explains how to set it up. https://www.val.town/v/stevekrouse/newStripeSubscriber. import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook"; import Stripe from "npm:stripe"; const stripe = new Stripe( Deno.env.get("stripe_sk_customer_readonly") as string,