1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function get() {
15 let jobs = await Promise.all(
16 places.map(async (place) => {
17 await fetch(place.url, {
18 method: "GET",
19 })
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export let aqi = async () => {
4 let pm25 = (
5 await fetchJSON(
6 "https://api.openaq.org/v2/latest?" +
7 new URLSearchParams({
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function scrapeWebsite(url) {
5 "https://deno.land/x/deno_dom@v0.1.38/deno-dom-wasm.ts"
6 );
7 const response = await fetch(url);
8 const html = await response.text();
9 var parser = new DOMParser();
3import { notionWordCounterDaysLastCached } from "https://esm.town/v/andreterron/notionWordCounterDaysLastCached";
4
5export async function notionWordCounterFetchDays() {
6 if (
7 notionWordCounterDaysLastCached >
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const getLinkAggregatorUserCounts = (async () => {
4 const response = await fetch("https://api.fedidb.org/v1/software?limit=40");
5 const json = await response.json();
6 const lemmy = json.data.find((software) =>
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const untitled_jbL1ikZS = (async () => {
4 const untitled_9k2u9UCG = (async () => {
5 const resp = await fetch(
6 "https://termin.samedi.de/b/kardiologie-neuhausen-nymphenburg/1/dr-med-jung-philip/erstkontakt-im-quartal--24?insuranceId=public"
7 );
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const lichessPgn = async (gameId: string) => {
4 const game = await fetch(`https://lichess.org/game/export/${gameId}`, {
5 headers: {
6 // Doesn't seem to actually want to do JSON :(
1import { fetch } from "https://esm.town/v/std/fetch";
2import { normalizeURL } from "https://esm.town/v/stevekrouse/normalizeURL?v=3";
3
4export async function fetchTweet(url) {
5 const tweetId = url.match(/(\d{19})/)[1];
6 const tweetUrl =
7 `https://cdn.syndication.twimg.com/tweet-result?id=${tweetId}&lang=en`;
8 const res = await fetch(normalizeURL(tweetUrl), {
9 redirect: "follow",
10 });
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const fetchHTML = (async () => {
4 let f = await fetch("https://api.val.town/express/@beneskildsen.serveHTML", {
5 method: "GET",
6 headers: {
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// Reddit recent posts from /r/aww (cute animals)
4export let subredditExample = fetchJSON(
5 "https://www.reddit.com/r/aww/.json"
6);