broadRedMarmosetmain.tsx20 matches
11e.preventDefault();
12setLoading(true);
13console.log(`Submitting URL for scraping: ${url}`);
14try {
15const response = await fetch("/scrape", {
22setResult(data);
23} catch (error) {
24console.log(`Error occurred while scraping URL: ${url}. Error details: ${error.message}`);
25setResult({ error: error.message });
26}
40/>
41<button type="submit" disabled={loading}>
42{loading ? "Scraping..." : "Scrape"}
43</button>
44</form>
77async function scrapePage(url) {
78console.log(`Starting to scrape page: ${url}`);
79const apiKey = Deno.env.get("ScrapingBeeAPIkey");
80if (!apiKey) {
81console.log("ScrapingBee API key not found in environment variables");
82throw new Error("ScrapingBee API key not found in environment variables");
83}
8489const threadmarkUrl = `${url}/threadmarks?hide_wrapper=1&display=embedded&threadmark_category=${category}`;
90const response = await fetch(
91`https://app.scrapingbee.com/api/v1/?api_key=${apiKey}&url=${
92encodeURIComponent(threadmarkUrl)
93}&render_js=true&premium_proxy=true&stealth_proxy=true`,
128};
129130console.log(`Sending request to ScrapingBee for URL: ${url} at ${new Date().toISOString()}`);
131const startTime = Date.now();
132try {
133const requestUrl = `https://app.scrapingbee.com/api/v1/?api_key=${apiKey}&url=${
134encodeURIComponent(url)
135}&render_js=true&premium_proxy=true&stealth_proxy=true&extract_rules=${
142143const duration = Date.now() - startTime;
144console.log(`Received response from ScrapingBee at ${new Date().toISOString()}. Duration: ${duration}ms`);
145console.log(`Received response from ScrapingBee for URL: ${url}. Status: ${response.status}`);
146147if (!response.ok) {
148console.log(`Error response from ScrapingBee. Status: ${response.status}`);
149const errorBody = await response.text();
150console.log(`Error response body: ${errorBody}`);
183};
184} catch (error) {
185console.log(`Error occurred while scraping URL: ${url}`);
186console.log(`Error details: ${error.message}`);
187console.log(`Error stack: ${error.stack}`);
190}
191192async function getApiKey() {
193const apiKey = Deno.env.get("ScrapingBeeAPIkey");
194if (!apiKey) {
195console.log("ScrapingBee API key not found in environment variables");
196throw new Error("ScrapingBee API key not found in environment variables");
197}
198return apiKey;
199}
200
1## Random Maps API
23This val returns one or more random rows from a [SQLite database](https://docs.val.town/std/sqlite/usage/) as a JSON array. Each item represents a digitised map from a collection and contains the following properties:
Chatprincipalmain.tsx1 match
494<title>Cicero AI - AI-powered Contract Creation</title>
495<meta name="viewport" content="width=device-width, initial-scale=1">
496<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
497</head>
498<body>
blob_adminREADME.md1 match
9[](https://www.val.town/v/stevekrouse/blob_admin_app/fork)
1011It uses [basic authentication](https://www.val.town/v/pomdtr/basicAuth) with your [Val Town API Token](https://www.val.town/settings/api) as the password (leave the username field blank).
1213# TODO
CaptchaGetBalancemain.tsx3 matches
6): Promise<number> {
7const providerEndpoints: { [key: string]: string } = {
8capmonster: "https://api.capmonster.cloud/getBalance",
9anticaptcha: "https://api.anti-captcha.com/getBalance",
10nextcaptcha: "https://api.nextcaptcha.com/getBalance",
11};
12const endpointUrl = providerEndpoints[provider];
v3FanFicScrapermain.tsx3 matches
22setScrapedData(data.content);
23} catch (error) {
24console.error("Error scraping URL:", error);
25setScrapedData("Error scraping URL. Please try again.");
26}
27setLoading(false);
41/>
42<button type="submit" disabled={loading}>
43{loading ? 'Scraping...' : 'Scrape'}
44</button>
45</form>
v3FanFicScraperREADME.md1 match
1Migrated from folder: fanficSearcher/ScrapingBeeAttempt/v3FanFicScraper
distinctGoldLarkmain.tsx3 matches
10formData.append("file", blob, "data.json");
1112// URL of your API
13const apiUrl = "https://filehaus.top/api/upload/data.json"; // Replace with your API URL
1415// Send the file using fetch
16try {
17const response = await fetch(apiUrl, {
18method: "POST",
19body: formData,
githubreposearchmain.tsx3 matches
7const order = "desc";
89const url = `https://api.github.com/search/repositories?q=${encodeURIComponent(query)}&sort=${sort}&order=${order}`;
1011const response = await fetch(url, {
12headers: {
13"Accept": "application/vnd.github.v3+json",
14"User-Agent": "Deno-GitHub-Repo-Fetcher", // GitHub API requires a user-agent header
15},
16});
1718if (!response.ok) {
19throw new Error(`GitHub API responded with status: ${response.status}`);
20}
21
madPinkCardinalREADME.md1 match
9[](https://www.val.town/v/stevekrouse/blob_admin_app/fork)
1011It uses [basic authentication](https://www.val.town/v/pomdtr/basicAuth) with your [Val Town API Token](https://www.val.town/settings/api) as the password (leave the username field blank).
1213# TODO