Search

Results include substring matches and semantically similar vals. Learn more
stevekrouse avatar
debugCheerioEx
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
export const debugCheerioEx = (async () => {
var cheerio = await import("npm:cheerio");
console.log(Object.keys(cheerio));
stevekrouse avatar
nbbaierImports
@stevekrouse
// Forked from @nbbaier.imports
Script
export const nbbaierImports = async () => {
const cheerio = await import("npm:cheerio");
const _ = await import("npm:lodash-es");
return { cheerio, _ };
tmcw avatar
cheerioExample
@tmcw
cheerio cheerio is a popular npm module that makes it easy to parse and manipulate HTML and XML. cheerio is modeled after a reduced version of jQuery . Note that it's pretty different than default browser DOM methods, so you can't call things like .appendChild or document.createElement when using cheerio: it's not based on a full-fledged DOM or browser implementation. But, in exchange it's a lot faster and simpler.
Script
export let cheerioExample = (async () => {
const { default: $ } = await import("npm:cheerio");
const document = $(`<article>
<div>Hello</div>
xxxjjj avatar
cheerioExample
@xxxjjj
cheerio cheerio is a popular npm module that makes it easy to parse and manipulate HTML and XML. cheerio is modeled after a reduced version of jQuery . Note that it's pretty different than default browser DOM methods, so you can't call things like .appendChild or document.createElement when using cheerio: it's not based on a full-fledged DOM or browser implementation. But, in exchange it's a lot faster and simpler.
Script
export let cheerioExample = (async () => {
const { default: $ } = await import("npm:cheerio");
const document = $(
`<select name="ctl00$bodyContentPlaceHolder$ddlistPlayDate" onchange="javascript:setTimeout('__doPostBack(\'ctl00$bodyCon
maryrosecook avatar
denoImportEx
@maryrosecook
An interactive, runnable TypeScript val by maryrosecook
Script
import { html } from "https://esm.town/v/maryrosecook/html";
export let denoImportEx = (async () => {
const cheerio = await import("npm:cheerio");
// const movieTitle = document.querySelector(
// "[data-qa='discovery-media-list-item-title']"
webup avatar
getWebLoaderBuilder
@webup
An interactive, runnable TypeScript val by webup
Script
matches({ type: "webpage" }),
async () => {
await import("npm:cheerio");
const { CheerioWebBaseLoader } = await import(
"npm:langchain/document_loaders/web/cheerio"
vtdocs avatar
webscrapeWikipediaIntro
@vtdocs
An interactive, runnable TypeScript val by vtdocs
HTTP (deprecated)
import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
export const webscrapeWikipediaIntro = (async () => {
const cheerio = await import("npm:cheerio");
const html = await fetchText(
"https://en.wikipedia.org/wiki/OpenAI",
chrislaughlin avatar
thedyslexicdeveloperTikTok
@chrislaughlin
An interactive, runnable TypeScript val by chrislaughlin
Script
import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
export const thedyslexicdeveloperTikTok = (async () => {
const cheerio = await import("npm:cheerio");
const html = await fetchText(
`https://www.tiktok.com/@thedyslexicdeveloper`,
elsif_maj avatar
nameTopHNThread
@elsif_maj
An interactive, runnable TypeScript val by elsif_maj
Script
export let nameTopHNThread = (async () => {
// Cheerio parses markup and provides an API to interact with the resulting data structure
const cheerio = await import("npm:cheerio"); // You can import NPM packages
const reply = await fetch("https://news.ycombinator.com/");
const replyText = await reply.text();
bluemsn avatar
getWebLoaderBuilder
@bluemsn
// fork by https://esm.town/v/webup/getWebLoaderBuilder;
Script
matches({ type: "webpage" }),
async () => {
await import("npm:cheerio");
const { CheerioWebBaseLoader } = await import(
"npm:langchain/document_loaders/web/cheerio"
elsif_maj avatar
nameTopHNThreadCron
@elsif_maj
An interactive, runnable TypeScript val by elsif_maj
Cron
export let nameTopHNThreadCron = (async () => {
// Cheerio parses markup and provides an API to interact with the resulting data structure
const cheerio = await import("npm:cheerio"); // You can import NPM packages
const reply = await fetch("https://news.ycombinator.com/");
const replyText = await reply.text();
kajgod avatar
njuskaloSniff
@kajgod
An interactive, runnable TypeScript val by kajgod
Script
url: string;
export const njuskaloSniff = async (search = []): Promise<IDetails | undefined> => {
const cheerio = await import("npm:cheerio");
const keywords = search.join("%20");
const searchUrl =
chrispie avatar
cryptoFearAndGreedIndex
@chrispie
An interactive, runnable TypeScript val by chrispie
Script
import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
export const cryptoFearAndGreedIndex = async () => {
const { default: cheerio } = await import("npm:cheerio");
const html = await fetchText(
"https://alternative.me/crypto/fear-and-greed-index/",
elsif_maj avatar
nameTopHNThreadUsingSomeonesVal
@elsif_maj
An interactive, runnable TypeScript val by elsif_maj
Script
export let nameTopHNThreadUsingSomeonesVal = (async () => {
// Cheerio parses markup and provides an API to interact with the resulting data structure
const cheerio = await import("npm:cheerio"); // You can import NPM packages
const replyText = await fetchText(
"https://news.ycombinator.com/",
richardkaplan avatar
webscrapeWikipediaIntro
@richardkaplan
An interactive, runnable TypeScript val by richardkaplan
Script
import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
export const webscrapeWikipediaIntro = (async () => {
const cheerio = await import("npm:cheerio");
const html = await fetchText(
"https://en.wikipedia.org/wiki/OpenAI",