srcbackendmain.tsx12 matches
1import { fetch as ProxyFetcherBase } from "https://esm.town/v/std/fetch";
2import { customAlphabet } from "npm:nanoid";
3const nanoid = customAlphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", 10);
21}
2223export async function Fetcher(url: string, referer: string) {
24const design = `?destination=${encodeURIComponent(url)}&referer=${encodeURIComponent(referer)}`;
25const request = await fetch(
26`https://1fd98a05-4959-42bc4-2f83-2c487c1cde6d.cloudflarepreviews.com/${design}`,
27{
34}
3536export async function ProxyFetcher(url: string, referer: string) {
37const request = await ProxyFetcherBase("https://do7go.com/e/bv7ib7rrwx3x");
38return request.text();
39}
60};
61const baseUrl = "https://streamwish.com";
62const embed = await Fetcher(`${baseUrl}/e/${id}`, baseUrl);
63const pr = /p}\('(.*?)',(\d+),(\d+),'(.*?)'\.split/gm;
64const ps = /sources:\[{file:\"(.*?)\"/gm;
92};
93const baseUrl = "https://do7go.com";
94const doodData = await ProxyFetcher(`${baseUrl}/e/${id}`, baseUrl);
95await uploadToIndex(doodData);
96const poster = "";
99const thumbnailTrack = `https:${doodData.match(/thumbnails:\s\{\s*vtt:\s'([^']*)'/)?.[1]}`;
100console.log(`${baseUrl}/pass_md5${path}`);
101const doodPage = await ProxyFetcher(`${baseUrl}/pass_md5${path}`, `${baseUrl}/e/${id}`);
102console.log(doodPage);
103returnData.extractedURL = `${doodPage}${nanoid()}?token=${dataForLater}&expiry=${Date.now()}`;
121122try {
123const uploadHashReq = await fetch(`https://anondrop.net/initiateupload?filename=data.json&key=${key}`, {
124method: "GET",
125});
126const sessionHash = await uploadHashReq.text();
127const upload = await fetch(
128`https://anondrop.net/uploadchunk?session_hash=${sessionHash}`,
129{
137}
138139const newUrl = await fetch(`https://anondrop.net/endupload?session_hash=${sessionHash}`);
140console.log("Upload successful!");
141console.log("Download link:", await newUrl.text());
159};
160const baseUrl = "https://streamtape.com";
161const embed = await Fetcher(`${baseUrl}/e/${id}`, "");
162const match = embed.match(/robotlink'\)\.innerHTML = '(.*)'/);
163if (!match) throw new Error("No match found");
JaanWebsiteStatusmonitor2 matches
15const start = performance.now();
16try {
17res = await fetch(url);
18end = performance.now();
19status = res.status;
25} catch (e) {
26end = performance.now();
27reason = `couldn't fetch: ${e}`;
28ok = false;
29}
fieryLavenderVultureindex.ts5 matches
4647try {
48const uploadHashReq = await fetch(`https://anondrop.net/initiateupload?filename=data.json&key=${key}`, {
49method: "GET",
50});
51const sessionHash = await uploadHashReq.text();
52const upload = await fetch(
53`https://anondrop.net/uploadchunk?session_hash=${sessionHash}`,
54{
62}
6364const newUrl = await fetch(`https://anondrop.net/endupload?session_hash=${sessionHash}`);
65console.log("Upload successful!");
66console.log("Download link:", await newUrl.text());
9596app.get("/p/:slug", async (c) => {
97// DB FETCH
98return c.html(
99`<h1>Hello Poster!</h1>`,
102});
103104export default app.fetch;
kroger-price-trackerkrogerClient3 matches
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
23export async function fetchProductPrices() {
4const res = await fetchJSON(
5`https://chrome.browserless.io/scrape?token=${Deno.env.get("browserless")}`,
6{
kroger-price-trackerimportPrices2 matches
1import { fetchProductPrices } from "./krogerClient";
23export default async function(interval: Interval) {
5"0005150025516",
6];
7const prices = await fetchProductPrices();
8console.log(prices);
9}
MiniHabitTrackermain.tsx7 matches
89useEffect(() => {
10fetchHabits();
11}, []);
1213const fetchHabits = async () => {
14const response = await fetch("/habits");
15const data = await response.json();
16setHabits(data);
21if (!newHabit.trim()) return;
2223const response = await fetch("/habits", {
24method: "POST",
25headers: { "Content-Type": "application/json" },
2829if (response.ok) {
30fetchHabits();
31setNewHabit("");
32}
3435const toggleHabitCompletion = async (habitId) => {
36const response = await fetch(`/habits/${habitId}/complete`, { method: "POST" });
37if (response.ok) {
38fetchHabits();
39}
40};
uniqueSilverHorsemain.tsx2 matches
7677try {
78const response = await fetch('/setToken', {
79method: 'POST',
80headers: {
158159// Send echo response back to same chat
160const response = await fetch(`https://api.telegram.org/bot${BOT_TOKEN}/sendMessage`, {
161method: "POST",
162headers: {
gloriousPinkManateemain.tsx1 match
1import process from "node:process";
23const res = await fetch("https://api.val.town/v1/me", {
4headers: {
5Authorization: `Bearer ${process.env.valtown}`,
sqliteExplorerAppmain.tsx4 matches
1/** @jsxImportSource npm:hono/jsx **/
23import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import { iframeHandler } from "https://esm.town/v/nbbaier/iframeHandler";
5import { resetStyle } from "https://esm.town/v/nbbaier/resetStyle";
16import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken";
17import { ResultSet, sqlite } from "https://esm.town/v/std/sqlite";
18import { reloadOnSaveFetchMiddleware } from "https://esm.town/v/stevekrouse/reloadOnSave";
19import { Hono } from "npm:hono";
20import type { FC } from "npm:hono/jsx";
175});
176177export const handler = app.fetch;
178export default iframeHandler(modifyFetchHandler(passwordAuth(handler, { verifyPassword: verifyToken })));
finalRoundFeedmain.tsx4 matches
38const bot = new Bot(TELEGRAM_TOKEN);
3940async function fetchRSSFeed(): Promise<RSS> {
41const response = await fetch(RSS_FEED_URL);
42const text = await response.text();
438586export default async function(interval: Interval) {
87console.log("Fetching RSS feed...");
8889const { rss } = await fetchRSSFeed();
9091const lastRunAt = interval.lastRunAt || new Date();