52app.route("/deleteAccount", deleteAccountRoute);
53
54export default app.fetch;
53});
54
55export default app.fetch;
1// This scraper provides a simple HTML form to input a Zillow URL.
2// It then uses the fetch API to get the HTML content of the Zillow listing page,
3// parses it using cheerio to extract the required information,
4// and displays the results in a table.
26 if (zillowUrl) {
27 try {
28 const response = await fetch(zillowUrl);
29 const html = await response.text();
30 const $ = cheerio.load(html);
1// This approach will use the fetch API to get the Craigslist page content,
2// parse it using cheerio, extract the required information,
3// and render it in a table format. We'll use React for the client-side rendering.
16 setListing(null);
17 setError(null);
18 fetch(`/scrape?url=${encodeURIComponent(url)}`)
19 .then(response => response.json())
20 .then(data => setListing(data))
77 });
78 }
79 const response = await fetch(craigslistUrl);
80 const html = await response.text();
81
68 headers?: Record<string, string>;
69}) => {
70 let result = await fetch(
71 `${API_URL}/v1/email`,
72 {
1SelectHtml is a Deno-based HTML scraper that integrates AI with Cheerio and Pug. This tool allows you to fetch, clean, and manipulate HTML content from URLs, using the Cheerio library to select and clean the HTML elements, and html2pug to convert HTML into Pug templates.
2
3Deprecated; use htmlTo instead, as that one supports more formats: https://www.val.town/v/yawnxyz/htmlTo
188 try {
189 const tokens = await oauthClient.validateAuthorizationCode(code, codeVerifier);
190 const userInfoResponse = await fetch(this.config.services[service].userInfoUrl, {
191 headers: {
192 Authorization: `Bearer ${tokens.accessToken}`
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const discordWebhook = async ({
8 content: string;
9}) => {
10 const res = await fetch(url, {
11 method: "POST",
12 redirect: "follow",
246 try {
247 const tokens = await github.validateAuthorizationCode(code);
248 const githubUserResponse = await fetch("https://api.github.com/user", {
249 headers: {
250 Authorization: `Bearer ${tokens.accessToken}`
365
366 console.log('trying to get the user info: ', tokens)
367 const userInfoResponse = await fetch("https://openidconnect.googleapis.com/v1/userinfo", {
368 headers: {
369 Authorization: `Bearer ${tokens.accessToken}`
440 return response;
441 });
442 return app.fetch;
443};
219
220 useEffect(() => {
221 fetchEasings();
222 }, []);
223
224 async function fetchEasings() {
225 const response = await fetch('/easings');
226 const data = await response.json();
227 setEasings(data);
229
230 async function submitEasing(newEasing) {
231 await fetch('/easings', {
232 method: 'POST',
233 headers: { 'Content-Type': 'application/json' },
234 body: JSON.stringify(newEasing)
235 });
236 fetchEasings();
237 }
238
239 async function vote(id, direction) {
240 await fetch(`/vote/${id}/${direction}`, { method: 'POST' });
241 setVotedEasings([...votedEasings, id]);
242 fetchEasings();
243 }
244