adilson avatar
webscrapeMinhaBibliotecaCatolicaBoxList
@adilson
Script
Getting all boxes from MinhaBibliotecaCatolica.com.br
masd1 avatar
maroonBadger
@masd1
Script
// Cheerio accepts a CSS selector, here we pick the second <p>
vladimyr avatar
dataURL_example
@vladimyr
Script
An interactive, runnable TypeScript val by vladimyr
rlesser avatar
espntcGetUsersGroups
@rlesser
HTTP (deprecated)
An interactive, runnable TypeScript val by rlesser
jeremys avatar
Breathe
@jeremys
HTTP (deprecated)
A very simple breathing tool I made for folks who may get panic attacks or just need to regulate their breathing Pure HTML, CSS, and JS!
reecer avatar
viewSource
@reecer
HTTP (deprecated)
Forked from neverstew/viewSource
stevekrouse avatar
r2
@stevekrouse
Script
r2 wrapper Save blobs without leaving Val Town! Only for Val Town Pro users to limit abuse. We get 10gb free, so as long as nobody abuses this, I won't put any strict limits on it. If you want to use more than 10gb, let me know, and we can bill you for it. All data in this bucket is public if you know it's name! This val, @stevekrouse.r2, is the "SDK" for @stevekrouse.r2Proxy . Setup This val requires you to setup public key auth, which is really just three clicks here: https://blog.val.town/public-key-auth-val-town-users-can-be-your-users [Optional] You can setup a helper function so you don't have to pass your keys every time: let blob = (key, value) => @stevekrouse.r2(key, value, @me.exportedKeys) Warning: Do not make your blob function public or unlisted. That would allow anyone to use it. Usage await @me.blob("demo", { hello: "world" }); return @me.blob("demo"); // {hello: "world"} Example usage: https://www.val.town/v/stevekrouse.r2Demo
hetzelhouse avatar
mathFact
@hetzelhouse
Script
An interactive, runnable TypeScript val by hetzelhouse
jdan avatar
latLngOfCity
@jdan
Script
An interactive, runnable TypeScript val by jdan
audiodude avatar
mathFact
@audiodude
Script
An interactive, runnable TypeScript val by audiodude
sebdd avatar
tootLatestPosts
@sebdd
Script
An interactive, runnable TypeScript val by sebdd
mattx avatar
scrape_gradio_data
@mattx
Script
scrape_gradio_data Scrapes the gradio_config object from Gradio sites/spaces. Most useful when pointed at a gradio site with lots of static data like the Open LLM Leaderboard
envl avatar
rand
@envl
Script
An interactive, runnable TypeScript val by envl
stevekrouse avatar
likelyCyanPartridge
@stevekrouse
HTTP (deprecated)
The actual code for VALL-E: https://www.val.town/v/janpaul123/VALLE
nmsilva avatar
forbetEventScrapper
@nmsilva
Script
// TODO: remove this line
rlesser avatar
getNextSSR
@rlesser
Script
getNextSSR - fetch data from Next.js SSR-based sites Many modern websites use Next.js and Server-side Rendering (SSR) to serve their website and the data to populate it. Instead of standard API calls, this manifests in the browser as calls routed through dynamic endpoints. This val handles the url construction and response parsing, giving you access to the endpoint and data. Input websiteUrl - The website's url, like google.com or val.town let getNextSSR: (websiteUrl: string) => Promise<(endpoint: string) => Promise<Record<string, any>>> Returns fetching function - A function that takes in an endpoint and returns the endpoint's response data: Input endpoint - The endpoint string, like results.json or trending.json?page=2 Returns data - The endpoint response data, without NextJS artifacts. Example const fetch = await @rlesser.getNextSSR("example.com"); const data = fetch("results.json"); return data;
November 8, 2023