Back to packages list

Vals using cheerio

Description from the NPM package:
Tiny, fast, and elegant implementation of core jQuery designed specifically for the server
damidina avatar
cheerioScraper
@damidina
Script
cheerioScraper This val scrapes a website to extract all the URLs from anchor ( <a> ) tags using the cheerio library. Usage import scrapeWebsite from 'val:damidina.cheerioScraper'; const urls = await scrapeWebsite('https://example.com'); console.log(urls);
gwoods22 avatar
macdonald_block_updates
@gwoods22
Cron
An interactive, runnable TypeScript val by gwoods22
nmsilva avatar
forbetEventScrapper
@nmsilva
Script
// TODO: remove this line
nmsilva avatar
forbetEventsScrapper
@nmsilva
Script
An interactive, runnable TypeScript val by nmsilva
xxxjjj avatar
cheerioExample
@xxxjjj
Script
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.
willthereader avatar
Title_Extractor
@willthereader
Script
// Helper function to retrieve CSRF token if needed
gwoods22 avatar
scraper_template
@gwoods22
Script
Website Scraper Template A basic website scraper template that can be ran on an interval to check for changes. It uses blob storage to save whatever data you'd like to compare the website to. Uses my sendNotification val to alert yourself of the change. Steps to use Add the scrapeURL you would like to scrape and pick a name for your blob storage blobKey . Change the "selector" value to fit your needs. cheerio is used to find the part of the page you'd like to check. Adjust the if statement to detect changes and update your blob Craft a message to be sent with sendNotification() function
masd1 avatar
maroonBadger
@masd1
Script
// Cheerio accepts a CSS selector, here we pick the second <p>
thecurryman avatar
sapphireManatee
@thecurryman
HTTP
@jsxImportSource https://esm.sh/preact
frmysantana avatar
tanCrane
@frmysantana
HTTP
An interactive, runnable TypeScript val by frmysantana
sethblanchard avatar
MoonPhase
@sethblanchard
HTTP
@jsxImportSource npm:react
djfeld01 avatar
webScrapeDiamondLeague
@djfeld01
Script
An interactive, runnable TypeScript val by djfeld01
radarthreat avatar
scrapeFargoGolf
@radarthreat
Script
An interactive, runnable TypeScript val by radarthreat
abhudson3 avatar
tanCrane
@abhudson3
HTTP
An interactive, runnable TypeScript val by abhudson3
jdan avatar
latLngOfCity
@jdan
Script
An interactive, runnable TypeScript val by jdan
cotr avatar
extract_content
@cotr
HTTP
Extract all text content from a URL using Cheerio