Search
![briscoe avatar](https://images.clerk.dev/oauth_github/img_2QqbpPFvB2YU2dg1bD1AXK27nLk.jpeg)
getTideTimes
@briscoe
An interactive, runnable TypeScript val by briscoe
Script
import { fetch } from "https://esm.town/v/std/fetch";
export const getTideTimes = (async () => {
const cheerio = await import("npm:cheerio");
const response = await fetch(
"https://www.worldtides.info/tidestations/Europe/Ireland/DUBLIN_(NORTH_WALL)",
![frontsideair avatar](https://images.clerk.dev/oauth_github/img_2RK8In12BHALiCEaj4RgnopTb9T.jpeg)
exchangeRate
@frontsideair
An interactive, runnable TypeScript val by frontsideair
Script
import { fetch } from "https://esm.town/v/std/fetch";
export async function exchangeRate() {
const cheerio = await import("npm:cheerio");
const page = await fetch(
"https://kur.doviz.com/serbest-piyasa/amerikan-dolari",
![thomasatflexos avatar](https://images.clerk.dev/oauth_github/img_2SyYoM7AXEho7ByUycFiyXg8Igo.jpeg)
generateEmbeddings
@thomasatflexos
An interactive, runnable TypeScript val by thomasatflexos
Script
req: express.Request,
res: express.Response,
await import("npm:cheerio");
const url = req?.body?.url;
if (!url) {
tacUrlToBibtex
@paolobrasolin
An interactive, runnable TypeScript val by paolobrasolin
Script
import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
export const tacUrlToBibtex = async (url: string) => {
const cheerio = await import("npm:cheerio");
const html = await fetchText(url);
const $ = cheerio.load(html);
tradestationMargins
@simone
An interactive, runnable TypeScript val by simone
Script
return result;
async function loadTradestationData() {
const cheerio = await import("npm:cheerio");
const response = await fetch(
"https://www.tradestation.com/pricing/futures-margin-requirements/"
interactiveBrokersMargins
@simone
An interactive, runnable TypeScript val by simone
Script
return result;
async function loadInteractiveBrokersData() {
const cheerio = await import("npm:cheerio");
const response = await fetch(
"https://www.interactivebrokers.com/en/trading/margin-futures-fops.php"
![briscoe avatar](https://images.clerk.dev/oauth_github/img_2QqbpPFvB2YU2dg1bD1AXK27nLk.jpeg)
getPoolTimes
@briscoe
An interactive, runnable TypeScript val by briscoe
Script
"friday",
"saturday",
const cheerio = await import("npm:cheerio");
const response = await fetch(
"https://www.swanleisure.ie/timetables?type=pool",
![adilson avatar](https://images.clerk.dev/oauth_github/img_2RIA6uzIq4Jo952YR923KeUpJKr.png)
webscrapeMinhaBibliotecaCatolicaBoxList
@adilson
Getting all boxes from MinhaBibliotecaCatolica.com.br
Script
const sourceUrl =
"https://assine.bibliotecacatolica.com.br/edicoes-anteriores";
const { default: cheerio } = await import("npm:cheerio");
const html = await fetchText(sourceUrl);
console.log(cheerio);
![maryrosecook avatar](https://images.clerk.dev/oauth_github/img_2PhbGhtFQzTt1uxpIBOUqSpQx2X.jpeg)
getListOfLatestStreamingMovies
@maryrosecook
An interactive, runnable TypeScript val by maryrosecook
Script
import { getLatestMoviesHtml } from "https://esm.town/v/maryrosecook/getLatestMoviesHtml";
export let getListOfLatestStreamingMovies = async () => {
const cheerio = await import("npm:cheerio");
const $ = cheerio.load(await getLatestMoviesHtml());
return $("[data-qa='discovery-media-list-item-title']")
letterboxd
@javier
Gets a list with all the films a user has added to their public diary in Letterboxd. The result is a JSON file with the following structure: "updated_at": "2023-08-13",
"count": 470,
"films": [
{
"watched_on": "2022-10-24",
"title": "Aftersun (2022)",
"rating": 4.5,
"rewatched": false
},
{
"watched_on": "2021-03-20",
"title": "Le Trou (1960)",
"rating": 5,
"rewatched": true
},
...
{
"watched_on": "2020-09-13",
"title": "Tampopo (1985)",
"rating": 5,
"rewatched": false
}
]
} If you want to use it in the browser, just visit this URL: https://javier-letterboxdscrapper.web.val.run/?username={username}
Script
import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
export const letterboxd = async (username: string) => {
const { default: cheerio } = await import("npm:cheerio");
const URL = `https://letterboxd.com/${username}/films/diary/`;
const getTotalPages = async () => {
![jacoblee93 avatar](https://images.clerk.dev/oauth_github/img_2QIS74zfuoUpIQDz75ze0alKMAy.jpeg)
runAgent
@jacoblee93
An interactive, runnable TypeScript val by jacoblee93
Script
const { initializeAgentExecutorWithOptions } = await import(
"npm:langchain/agents"
const cheerio = await import("npm:cheerio");
const { LLMChain } = await import("npm:langchain/chains");
const { ChatPromptTemplate, HumanMessagePromptTemplate } = await import(
![stevekrouse avatar](https://images.clerk.dev/uploaded/img_2PqHa2Gsy93xQrjh2w78Xu0cChW.jpeg)
cheerioEx
@stevekrouse
// Forked from @maryrosecook.denoImportEx
Script
export let cheerioEx = (async () => {
const cheerio = await import("npm:cheerio@1.0.0-rc.12");
const $ = cheerio.load("<html><h1>hi</h1></html>");
return $("h1")
.toArray()
.map((node) => $(node).text().trim());
// Forked from @maryrosecook.denoImportEx
![csshsh avatar](https://secure.gravatar.com/avatar/966a441cce3f7cab1588082724c8ecb7.jpg?s=200&d=identicon)
npmExample
@csshsh
An interactive, runnable TypeScript val by csshsh
Script
export let npmExample = (async () => {
const _ = await import("npm:lodash-es"); // The Lodash library exported as ES modules.
const jsdom = await import("npm:jsdom");
console.log(jsdom);
return _.shuffle(_.zip([1, 2, 3, 4], [5, 6, 7, 8]));