• adilson avatar
    webscrapeMinhaBibliotecaCatolicaBoxList
    @adilson
    Getting all boxes from MinhaBibliotecaCatolica.com.br
    Script
  • masd1 avatar
    maroonBadger
    @masd1
    // Cheerio accepts a CSS selector, here we pick the second <p>
    Script
  • vladimyr avatar
    dataURL_example
    @vladimyr
    An interactive, runnable TypeScript val by vladimyr
    Script
  • rlesser avatar
    espntcGetUsersGroups
    @rlesser
    An interactive, runnable TypeScript val by rlesser
    HTTP (deprecated)
  • jeremys avatar
    Breathe
    @jeremys
    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!
    HTTP (deprecated)
  • reecer avatar
    viewSource
    @reecer
    Forked from neverstew/viewSource
    HTTP (deprecated)
  • stevekrouse avatar
    r2
    @stevekrouse
    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
    Script
  • hetzelhouse avatar
    mathFact
    @hetzelhouse
    An interactive, runnable TypeScript val by hetzelhouse
    Script
  • jdan avatar
    latLngOfCity
    @jdan
    An interactive, runnable TypeScript val by jdan
    Script
  • audiodude avatar
    mathFact
    @audiodude
    An interactive, runnable TypeScript val by audiodude
    Script
  • sebdd avatar
    tootLatestPosts
    @sebdd
    An interactive, runnable TypeScript val by sebdd
    Script
  • mattx avatar
    scrape_gradio_data
    @mattx
    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
    Script
  • envl avatar
    rand
    @envl
    An interactive, runnable TypeScript val by envl
    Script
  • stevekrouse avatar
    likelyCyanPartridge
    @stevekrouse
    The actual code for VALL-E: https://www.val.town/v/janpaul123/VALLE
    HTTP (deprecated)
  • nmsilva avatar
    forbetEventScrapper
    @nmsilva
    // TODO: remove this line
    Script
  • rlesser avatar
    getNextSSR
    @rlesser
    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;
    Script
November 8, 2023