@keystrokehq/scrapingant 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/extract-content-as-markdown.cjs.map +1 -1
- package/dist/actions/extract-content-as-markdown.d.cts +34 -3
- package/dist/actions/extract-content-as-markdown.d.cts.map +1 -1
- package/dist/actions/extract-content-as-markdown.d.mts +34 -3
- package/dist/actions/extract-content-as-markdown.d.mts.map +1 -1
- package/dist/actions/extract-content-as-markdown.mjs.map +1 -1
- package/dist/actions/extract-data-with-ai.cjs.map +1 -1
- package/dist/actions/extract-data-with-ai.d.cts +25 -3
- package/dist/actions/extract-data-with-ai.d.cts.map +1 -1
- package/dist/actions/extract-data-with-ai.d.mts +25 -3
- package/dist/actions/extract-data-with-ai.d.mts.map +1 -1
- package/dist/actions/extract-data-with-ai.mjs.map +1 -1
- package/dist/actions/get-api-credits-usage.cjs +5 -5
- package/dist/actions/get-api-credits-usage.cjs.map +1 -1
- package/dist/actions/get-api-credits-usage.d.cts +9 -3
- package/dist/actions/get-api-credits-usage.d.cts.map +1 -1
- package/dist/actions/get-api-credits-usage.d.mts +9 -3
- package/dist/actions/get-api-credits-usage.d.mts.map +1 -1
- package/dist/actions/get-api-credits-usage.mjs +5 -5
- package/dist/actions/get-api-credits-usage.mjs.map +1 -1
- package/dist/actions/scrape-web-page.cjs +1 -1
- package/dist/actions/scrape-web-page.cjs.map +1 -1
- package/dist/actions/scrape-web-page.d.cts +42 -3
- package/dist/actions/scrape-web-page.d.cts.map +1 -1
- package/dist/actions/scrape-web-page.d.mts +42 -3
- package/dist/actions/scrape-web-page.d.mts.map +1 -1
- package/dist/actions/scrape-web-page.mjs +1 -1
- package/dist/actions/scrape-web-page.mjs.map +1 -1
- package/dist/actions/scrape-webpage-post.cjs +1 -1
- package/dist/actions/scrape-webpage-post.cjs.map +1 -1
- package/dist/actions/scrape-webpage-post.d.cts +44 -3
- package/dist/actions/scrape-webpage-post.d.cts.map +1 -1
- package/dist/actions/scrape-webpage-post.d.mts +44 -3
- package/dist/actions/scrape-webpage-post.d.mts.map +1 -1
- package/dist/actions/scrape-webpage-post.mjs +1 -1
- package/dist/actions/scrape-webpage-post.mjs.map +1 -1
- package/dist/actions/scrape-webpage-put.cjs +1 -1
- package/dist/actions/scrape-webpage-put.cjs.map +1 -1
- package/dist/actions/scrape-webpage-put.d.cts +46 -3
- package/dist/actions/scrape-webpage-put.d.cts.map +1 -1
- package/dist/actions/scrape-webpage-put.d.mts +46 -3
- package/dist/actions/scrape-webpage-put.d.mts.map +1 -1
- package/dist/actions/scrape-webpage-put.mjs +1 -1
- package/dist/actions/scrape-webpage-put.mjs.map +1 -1
- package/dist/actions/scrape-with-extended-json-output.cjs +11 -11
- package/dist/actions/scrape-with-extended-json-output.cjs.map +1 -1
- package/dist/actions/scrape-with-extended-json-output.d.cts +45 -3
- package/dist/actions/scrape-with-extended-json-output.d.cts.map +1 -1
- package/dist/actions/scrape-with-extended-json-output.d.mts +45 -3
- package/dist/actions/scrape-with-extended-json-output.d.mts.map +1 -1
- package/dist/actions/scrape-with-extended-json-output.mjs +11 -11
- package/dist/actions/scrape-with-extended-json-output.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["scrapingant","executeScrapingantTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { scrapingant } from \"./app\";\nimport { executeScrapingantTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["scrapingant","executeScrapingantTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { scrapingant } from \"./app\";\nimport { executeScrapingantTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return scrapingant.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeScrapingantTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { scrapingant } from \"./app\";\nimport { executeScrapingantTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { scrapingant } from \"./app\";\nimport { executeScrapingantTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return scrapingant.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeScrapingantTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-content-as-markdown.cjs","names":["z","action"],"sources":["../../src/actions/extract-content-as-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantExtractContentAsMarkdownInput
|
|
1
|
+
{"version":3,"file":"extract-content-as-markdown.cjs","names":["z","action"],"sources":["../../src/actions/extract-content-as-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantExtractContentAsMarkdownInput = z.object({\n url: z.string().describe(\"The URL of the web page to scrape and convert to Markdown.\"),\n method: z.enum([\"get\", \"post\", \"put\", \"delete\"]).default(\"get\").describe(\"HTTP method to use for the request.\").optional(),\n browser: z.boolean().describe(\"Enables the use of a headless browser for scraping. Default is true.\").optional(),\n cookies: z.string().describe(\"Cookies to include with the request.\").optional(),\n js_snippet: z.string().describe(\"Base64-encoded JavaScript to execute on the page after it loads.\").optional(),\n proxy_type: z.string().describe(\"Specifies the type of proxy to use.\").optional(),\n proxy_country: z.string().describe(\"Specifies the country for the proxy (e.g., US, GB).\").optional(),\n block_resource: z.array(z.string()).describe(\"List of resource types to block (e.g., image, script, stylesheet, font, media, websocket, other).\").optional(),\n wait_for_selector: z.string().describe(\"CSS selector to wait for before returning the result.\").optional(),\n return_page_source: z.boolean().describe(\"Returns the raw HTML as received from the server, without JavaScript rendering. Default is false.\").optional(),\n});\nexport const ScrapingantExtractContentAsMarkdownOutput = z.object({\n url: z.string().describe(\"The original URL of the scraped page.\").nullable().optional(),\n detail: z.string().describe(\"Error detail if the request failed.\").nullable().optional(),\n markdown: z.string().describe(\"The extracted content in Markdown format.\").nullable().optional(),\n});\n\nexport const scrapingantExtractContentAsMarkdown = action(\"SCRAPINGANT_EXTRACT_CONTENT_AS_MARKDOWN\", {\n slug: \"scrapingant-extract-content-as-markdown\",\n name: \"Extract Content as Markdown\",\n description: \"This tool extracts content from a given URL and converts it into Markdown format. It is particularly useful for preparing text for Language Learning Models (LLMs) and Retrieval-Augmented Generation (RAG) systems. It supports GET, POST, PUT, and DELETE methods.\",\n input: ScrapingantExtractContentAsMarkdownInput,\n output: ScrapingantExtractContentAsMarkdownOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACrF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAO;CAAQ,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACzH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC/G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC7G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACnG,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CAC3J,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACzG,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;AACzJ,CAAC;AACD,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC;AAED,MAAa,sCAAsCC,eAAAA,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/extract-content-as-markdown.d.ts
|
|
4
|
-
declare const ScrapingantExtractContentAsMarkdownInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapingantExtractContentAsMarkdownInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
method: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
get: "get";
|
|
8
|
+
post: "post";
|
|
9
|
+
put: "put";
|
|
10
|
+
delete: "delete";
|
|
11
|
+
}>>>;
|
|
12
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
cookies: z.ZodOptional<z.ZodString>;
|
|
14
|
+
js_snippet: z.ZodOptional<z.ZodString>;
|
|
15
|
+
proxy_type: z.ZodOptional<z.ZodString>;
|
|
16
|
+
proxy_country: z.ZodOptional<z.ZodString>;
|
|
17
|
+
block_resource: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
wait_for_selector: z.ZodOptional<z.ZodString>;
|
|
19
|
+
return_page_source: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const ScrapingantExtractContentAsMarkdownOutput: z.ZodObject<{
|
|
22
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
markdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const scrapingantExtractContentAsMarkdown: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
url: string;
|
|
28
|
+
method?: "get" | "post" | "put" | "delete" | undefined;
|
|
29
|
+
browser?: boolean | undefined;
|
|
30
|
+
cookies?: string | undefined;
|
|
31
|
+
js_snippet?: string | undefined;
|
|
32
|
+
proxy_type?: string | undefined;
|
|
33
|
+
proxy_country?: string | undefined;
|
|
34
|
+
block_resource?: string[] | undefined;
|
|
35
|
+
wait_for_selector?: string | undefined;
|
|
36
|
+
return_page_source?: boolean | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { scrapingantExtractContentAsMarkdown };
|
|
9
40
|
//# sourceMappingURL=extract-content-as-markdown.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-content-as-markdown.d.cts","names":[],"sources":["../../src/actions/extract-content-as-markdown.ts"],"mappings":";;;cAIa,wCAAA,
|
|
1
|
+
{"version":3,"file":"extract-content-as-markdown.d.cts","names":[],"sources":["../../src/actions/extract-content-as-markdown.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;cAMzC,mCAAA,gCAAmC,wBAAA"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/extract-content-as-markdown.d.ts
|
|
4
|
-
declare const ScrapingantExtractContentAsMarkdownInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapingantExtractContentAsMarkdownInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
method: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
get: "get";
|
|
8
|
+
post: "post";
|
|
9
|
+
put: "put";
|
|
10
|
+
delete: "delete";
|
|
11
|
+
}>>>;
|
|
12
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
cookies: z.ZodOptional<z.ZodString>;
|
|
14
|
+
js_snippet: z.ZodOptional<z.ZodString>;
|
|
15
|
+
proxy_type: z.ZodOptional<z.ZodString>;
|
|
16
|
+
proxy_country: z.ZodOptional<z.ZodString>;
|
|
17
|
+
block_resource: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
wait_for_selector: z.ZodOptional<z.ZodString>;
|
|
19
|
+
return_page_source: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const ScrapingantExtractContentAsMarkdownOutput: z.ZodObject<{
|
|
22
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
markdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const scrapingantExtractContentAsMarkdown: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
url: string;
|
|
28
|
+
method?: "get" | "post" | "put" | "delete" | undefined;
|
|
29
|
+
browser?: boolean | undefined;
|
|
30
|
+
cookies?: string | undefined;
|
|
31
|
+
js_snippet?: string | undefined;
|
|
32
|
+
proxy_type?: string | undefined;
|
|
33
|
+
proxy_country?: string | undefined;
|
|
34
|
+
block_resource?: string[] | undefined;
|
|
35
|
+
wait_for_selector?: string | undefined;
|
|
36
|
+
return_page_source?: boolean | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { scrapingantExtractContentAsMarkdown };
|
|
9
40
|
//# sourceMappingURL=extract-content-as-markdown.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-content-as-markdown.d.mts","names":[],"sources":["../../src/actions/extract-content-as-markdown.ts"],"mappings":";;;cAIa,wCAAA,
|
|
1
|
+
{"version":3,"file":"extract-content-as-markdown.d.mts","names":[],"sources":["../../src/actions/extract-content-as-markdown.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;cAMzC,mCAAA,gCAAmC,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-content-as-markdown.mjs","names":[],"sources":["../../src/actions/extract-content-as-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantExtractContentAsMarkdownInput
|
|
1
|
+
{"version":3,"file":"extract-content-as-markdown.mjs","names":[],"sources":["../../src/actions/extract-content-as-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantExtractContentAsMarkdownInput = z.object({\n url: z.string().describe(\"The URL of the web page to scrape and convert to Markdown.\"),\n method: z.enum([\"get\", \"post\", \"put\", \"delete\"]).default(\"get\").describe(\"HTTP method to use for the request.\").optional(),\n browser: z.boolean().describe(\"Enables the use of a headless browser for scraping. Default is true.\").optional(),\n cookies: z.string().describe(\"Cookies to include with the request.\").optional(),\n js_snippet: z.string().describe(\"Base64-encoded JavaScript to execute on the page after it loads.\").optional(),\n proxy_type: z.string().describe(\"Specifies the type of proxy to use.\").optional(),\n proxy_country: z.string().describe(\"Specifies the country for the proxy (e.g., US, GB).\").optional(),\n block_resource: z.array(z.string()).describe(\"List of resource types to block (e.g., image, script, stylesheet, font, media, websocket, other).\").optional(),\n wait_for_selector: z.string().describe(\"CSS selector to wait for before returning the result.\").optional(),\n return_page_source: z.boolean().describe(\"Returns the raw HTML as received from the server, without JavaScript rendering. Default is false.\").optional(),\n});\nexport const ScrapingantExtractContentAsMarkdownOutput = z.object({\n url: z.string().describe(\"The original URL of the scraped page.\").nullable().optional(),\n detail: z.string().describe(\"Error detail if the request failed.\").nullable().optional(),\n markdown: z.string().describe(\"The extracted content in Markdown format.\").nullable().optional(),\n});\n\nexport const scrapingantExtractContentAsMarkdown = action(\"SCRAPINGANT_EXTRACT_CONTENT_AS_MARKDOWN\", {\n slug: \"scrapingant-extract-content-as-markdown\",\n name: \"Extract Content as Markdown\",\n description: \"This tool extracts content from a given URL and converts it into Markdown format. It is particularly useful for preparing text for Language Learning Models (LLMs) and Retrieval-Augmented Generation (RAG) systems. It supports GET, POST, PUT, and DELETE methods.\",\n input: ScrapingantExtractContentAsMarkdownInput,\n output: ScrapingantExtractContentAsMarkdownOutput,\n});\n"],"mappings":";;AAsBA,MAAa,sCAAsC,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBsD,EAAE,OAAO;EAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACrF,QAAQ,EAAE,KAAK;GAAC;GAAO;GAAQ;GAAO;EAAQ,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACzH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC/G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC7G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACnG,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EAC3J,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACzG,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACzJ,CAWS;CACP,QAXuD,EAAE,OAAO;EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,CAOU;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-data-with-ai.cjs","names":["z","action"],"sources":["../../src/actions/extract-data-with-ai.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantExtractDataWithAiInput
|
|
1
|
+
{"version":3,"file":"extract-data-with-ai.cjs","names":["z","action"],"sources":["../../src/actions/extract-data-with-ai.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantExtractDataWithAiInput = z.object({\n url: z.string().describe(\"The URL of the page to extract data from.\"),\n cookies: z.string().describe(\"Cookies to use for the request. (e.g. cookie1=value1; cookie2=value2)\").optional(),\n proxy_type: z.string().describe(\"Proxy type to use for the request. (datacenter, residential)\").optional(),\n return_text: z.boolean().describe(\"Return text content of the page. (default: false)\").optional(),\n proxy_country: z.string().describe(\"Proxy country to use for the request. (e.g. US, GB, DE)\").optional(),\n enable_javascript: z.boolean().describe(\"Enable browser rendering. (default: true)\").optional(),\n wait_for_selector: z.string().describe(\"Wait for a specific selector to appear on the page before extracting data.\").optional(),\n extract_properties: z.string().describe(\"A free-form text describing the data you want to extract.\"),\n});\nexport const ScrapingantExtractDataWithAiOutput = z.object({\n text: z.string().describe(\"Text content of the page. Only populated when return_text is set to true.\").nullable().optional(),\n content: z.record(z.string(), z.unknown()).describe(\"Extracted data as a JSON object with the requested properties as keys. Can contain nested objects, arrays, strings, numbers, and booleans.\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code of the response from the target website.\").nullable().optional(),\n});\n\nexport const scrapingantExtractDataWithAi = action(\"SCRAPINGANT_EXTRACT_DATA_WITH_AI\", {\n slug: \"scrapingant-extract-data-with-ai\",\n name: \"Extract Data with AI\",\n description: \"This tool allows you to extract structured data from a web page using ScrapingAnt's AI-powered extraction capabilities. You provide a URL and an AI query (prompt) describing what data you want to extract, and the tool returns the extracted data in a structured format. It supports additional parameters for browser rendering, proxies, and cookies to handle dynamic content and localization.\",\n input: ScrapingantExtractDataWithAiInput,\n output: ScrapingantExtractDataWithAiOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACvG,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC9F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAC9H,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;AACrG,CAAC;AACD,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtN,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC;AAED,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/extract-data-with-ai.d.ts
|
|
4
|
-
declare const ScrapingantExtractDataWithAiInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapingantExtractDataWithAiInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
cookies: z.ZodOptional<z.ZodString>;
|
|
7
|
+
proxy_type: z.ZodOptional<z.ZodString>;
|
|
8
|
+
return_text: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
proxy_country: z.ZodOptional<z.ZodString>;
|
|
10
|
+
enable_javascript: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
wait_for_selector: z.ZodOptional<z.ZodString>;
|
|
12
|
+
extract_properties: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const ScrapingantExtractDataWithAiOutput: z.ZodObject<{
|
|
15
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
17
|
+
status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const scrapingantExtractDataWithAi: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
url: string;
|
|
21
|
+
extract_properties: string;
|
|
22
|
+
cookies?: string | undefined;
|
|
23
|
+
proxy_type?: string | undefined;
|
|
24
|
+
return_text?: boolean | undefined;
|
|
25
|
+
proxy_country?: string | undefined;
|
|
26
|
+
enable_javascript?: boolean | undefined;
|
|
27
|
+
wait_for_selector?: string | undefined;
|
|
28
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { scrapingantExtractDataWithAi };
|
|
9
31
|
//# sourceMappingURL=extract-data-with-ai.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-data-with-ai.d.cts","names":[],"sources":["../../src/actions/extract-data-with-ai.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"extract-data-with-ai.d.cts","names":[],"sources":["../../src/actions/extract-data-with-ai.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAUjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/extract-data-with-ai.d.ts
|
|
4
|
-
declare const ScrapingantExtractDataWithAiInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapingantExtractDataWithAiInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
cookies: z.ZodOptional<z.ZodString>;
|
|
7
|
+
proxy_type: z.ZodOptional<z.ZodString>;
|
|
8
|
+
return_text: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
proxy_country: z.ZodOptional<z.ZodString>;
|
|
10
|
+
enable_javascript: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
wait_for_selector: z.ZodOptional<z.ZodString>;
|
|
12
|
+
extract_properties: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const ScrapingantExtractDataWithAiOutput: z.ZodObject<{
|
|
15
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
17
|
+
status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const scrapingantExtractDataWithAi: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
url: string;
|
|
21
|
+
extract_properties: string;
|
|
22
|
+
cookies?: string | undefined;
|
|
23
|
+
proxy_type?: string | undefined;
|
|
24
|
+
return_text?: boolean | undefined;
|
|
25
|
+
proxy_country?: string | undefined;
|
|
26
|
+
enable_javascript?: boolean | undefined;
|
|
27
|
+
wait_for_selector?: string | undefined;
|
|
28
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { scrapingantExtractDataWithAi };
|
|
9
31
|
//# sourceMappingURL=extract-data-with-ai.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-data-with-ai.d.mts","names":[],"sources":["../../src/actions/extract-data-with-ai.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"extract-data-with-ai.d.mts","names":[],"sources":["../../src/actions/extract-data-with-ai.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAUjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-data-with-ai.mjs","names":[],"sources":["../../src/actions/extract-data-with-ai.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantExtractDataWithAiInput
|
|
1
|
+
{"version":3,"file":"extract-data-with-ai.mjs","names":[],"sources":["../../src/actions/extract-data-with-ai.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantExtractDataWithAiInput = z.object({\n url: z.string().describe(\"The URL of the page to extract data from.\"),\n cookies: z.string().describe(\"Cookies to use for the request. (e.g. cookie1=value1; cookie2=value2)\").optional(),\n proxy_type: z.string().describe(\"Proxy type to use for the request. (datacenter, residential)\").optional(),\n return_text: z.boolean().describe(\"Return text content of the page. (default: false)\").optional(),\n proxy_country: z.string().describe(\"Proxy country to use for the request. (e.g. US, GB, DE)\").optional(),\n enable_javascript: z.boolean().describe(\"Enable browser rendering. (default: true)\").optional(),\n wait_for_selector: z.string().describe(\"Wait for a specific selector to appear on the page before extracting data.\").optional(),\n extract_properties: z.string().describe(\"A free-form text describing the data you want to extract.\"),\n});\nexport const ScrapingantExtractDataWithAiOutput = z.object({\n text: z.string().describe(\"Text content of the page. Only populated when return_text is set to true.\").nullable().optional(),\n content: z.record(z.string(), z.unknown()).describe(\"Extracted data as a JSON object with the requested properties as keys. Can contain nested objects, arrays, strings, numbers, and booleans.\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code of the response from the target website.\").nullable().optional(),\n});\n\nexport const scrapingantExtractDataWithAi = action(\"SCRAPINGANT_EXTRACT_DATA_WITH_AI\", {\n slug: \"scrapingant-extract-data-with-ai\",\n name: \"Extract Data with AI\",\n description: \"This tool allows you to extract structured data from a web page using ScrapingAnt's AI-powered extraction capabilities. You provide a URL and an AI query (prompt) describing what data you want to extract, and the tool returns the extracted data in a structured format. It supports additional parameters for browser rendering, proxies, and cookies to handle dynamic content and localization.\",\n input: ScrapingantExtractDataWithAiInput,\n output: ScrapingantExtractDataWithAiOutput,\n});\n"],"mappings":";;AAoBA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB+C,EAAE,OAAO;EACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EAC/G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACzG,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAChG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACvG,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAC9F,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EAC9H,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACrG,CAWS;CACP,QAXgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtN,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,CAOU;AACV,CAAC"}
|
|
@@ -3,11 +3,11 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-api-credits-usage.ts
|
|
4
4
|
const ScrapingantGetApiCreditsUsageInput = zod.z.object({}).describe("Request model for GetApiCreditsUsage action.\nThis action does not require any specific request parameters beyond authentication.");
|
|
5
5
|
const ScrapingantGetApiCreditsUsageOutput = zod.z.object({
|
|
6
|
-
end_date: zod.z.string().describe("The end date of the current billing period in ISO 8601 format (e.g., '2026-02-07T11:34:42.437395')."),
|
|
7
|
-
plan_name: zod.z.string().describe("The name of the current subscription plan (e.g., 'Free', 'Hobby', 'Business')."),
|
|
8
|
-
start_date: zod.z.string().describe("The start date of the current billing period in ISO 8601 format (e.g., '2026-01-08T11:34:42.437390')."),
|
|
9
|
-
remained_credits: zod.z.number().int().describe("The number of API credits remaining for the current billing period."),
|
|
10
|
-
plan_total_credits: zod.z.number().int().describe("The total number of API credits included in the current subscription plan.")
|
|
6
|
+
end_date: zod.z.string().describe("The end date of the current billing period in ISO 8601 format (e.g., '2026-02-07T11:34:42.437395').").nullable(),
|
|
7
|
+
plan_name: zod.z.string().describe("The name of the current subscription plan (e.g., 'Free', 'Hobby', 'Business').").nullable(),
|
|
8
|
+
start_date: zod.z.string().describe("The start date of the current billing period in ISO 8601 format (e.g., '2026-01-08T11:34:42.437390').").nullable(),
|
|
9
|
+
remained_credits: zod.z.number().int().describe("The number of API credits remaining for the current billing period.").nullable(),
|
|
10
|
+
plan_total_credits: zod.z.number().int().describe("The total number of API credits included in the current subscription plan.").nullable()
|
|
11
11
|
}).describe("Response model for GetApiCreditsUsage action.");
|
|
12
12
|
const scrapingantGetApiCreditsUsage = require_action.action("SCRAPINGANT_GET_API_CREDITS_USAGE", {
|
|
13
13
|
slug: "scrapingant-get-api-credits-usage",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-credits-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-api-credits-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantGetApiCreditsUsageInput
|
|
1
|
+
{"version":3,"file":"get-api-credits-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-api-credits-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantGetApiCreditsUsageInput = z.object({}).describe(\"Request model for GetApiCreditsUsage action.\\nThis action does not require any specific request parameters beyond authentication.\");\nexport const ScrapingantGetApiCreditsUsageOutput = z.object({\n end_date: z.string().describe(\"The end date of the current billing period in ISO 8601 format (e.g., '2026-02-07T11:34:42.437395').\").nullable(),\n plan_name: z.string().describe(\"The name of the current subscription plan (e.g., 'Free', 'Hobby', 'Business').\").nullable(),\n start_date: z.string().describe(\"The start date of the current billing period in ISO 8601 format (e.g., '2026-01-08T11:34:42.437390').\").nullable(),\n remained_credits: z.number().int().describe(\"The number of API credits remaining for the current billing period.\").nullable(),\n plan_total_credits: z.number().int().describe(\"The total number of API credits included in the current subscription plan.\").nullable(),\n}).describe(\"Response model for GetApiCreditsUsage action.\");\n\nexport const scrapingantGetApiCreditsUsage = action(\"SCRAPINGANT_GET_API_CREDITS_USAGE\", {\n slug: \"scrapingant-get-api-credits-usage\",\n name: \"Get API Credits Usage\",\n description: \"This tool retrieves the current API credit usage status for the authenticated ScrapingAnt account. It enables users to monitor their consumption of API credits, check their current usage against the subscription limits, and manage their API credits effectively.\",\n input: ScrapingantGetApiCreditsUsageInput,\n output: ScrapingantGetApiCreditsUsageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mIAAmI;AAC3M,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC9I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAClJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5H,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-api-credits-usage.d.ts
|
|
4
|
-
declare const ScrapingantGetApiCreditsUsageInput: z.
|
|
5
|
-
declare const ScrapingantGetApiCreditsUsageOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ScrapingantGetApiCreditsUsageInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ScrapingantGetApiCreditsUsageOutput: z.ZodObject<{
|
|
6
|
+
end_date: z.ZodNullable<z.ZodString>;
|
|
7
|
+
plan_name: z.ZodNullable<z.ZodString>;
|
|
8
|
+
start_date: z.ZodNullable<z.ZodString>;
|
|
9
|
+
remained_credits: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
plan_total_credits: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const scrapingantGetApiCreditsUsage: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { scrapingantGetApiCreditsUsage };
|
|
9
15
|
//# sourceMappingURL=get-api-credits-usage.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-credits-usage.d.cts","names":[],"sources":["../../src/actions/get-api-credits-usage.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"get-api-credits-usage.d.cts","names":[],"sources":["../../src/actions/get-api-credits-usage.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;cAQnC,6BAAA,gCAA6B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-api-credits-usage.d.ts
|
|
4
|
-
declare const ScrapingantGetApiCreditsUsageInput: z.
|
|
5
|
-
declare const ScrapingantGetApiCreditsUsageOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ScrapingantGetApiCreditsUsageInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ScrapingantGetApiCreditsUsageOutput: z.ZodObject<{
|
|
6
|
+
end_date: z.ZodNullable<z.ZodString>;
|
|
7
|
+
plan_name: z.ZodNullable<z.ZodString>;
|
|
8
|
+
start_date: z.ZodNullable<z.ZodString>;
|
|
9
|
+
remained_credits: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
plan_total_credits: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const scrapingantGetApiCreditsUsage: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { scrapingantGetApiCreditsUsage };
|
|
9
15
|
//# sourceMappingURL=get-api-credits-usage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-credits-usage.d.mts","names":[],"sources":["../../src/actions/get-api-credits-usage.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"get-api-credits-usage.d.mts","names":[],"sources":["../../src/actions/get-api-credits-usage.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;cAQnC,6BAAA,gCAA6B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -6,11 +6,11 @@ const scrapingantGetApiCreditsUsage = action("SCRAPINGANT_GET_API_CREDITS_USAGE"
|
|
|
6
6
|
description: "This tool retrieves the current API credit usage status for the authenticated ScrapingAnt account. It enables users to monitor their consumption of API credits, check their current usage against the subscription limits, and manage their API credits effectively.",
|
|
7
7
|
input: z.object({}).describe("Request model for GetApiCreditsUsage action.\nThis action does not require any specific request parameters beyond authentication."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
end_date: z.string().describe("The end date of the current billing period in ISO 8601 format (e.g., '2026-02-07T11:34:42.437395')."),
|
|
10
|
-
plan_name: z.string().describe("The name of the current subscription plan (e.g., 'Free', 'Hobby', 'Business')."),
|
|
11
|
-
start_date: z.string().describe("The start date of the current billing period in ISO 8601 format (e.g., '2026-01-08T11:34:42.437390')."),
|
|
12
|
-
remained_credits: z.number().int().describe("The number of API credits remaining for the current billing period."),
|
|
13
|
-
plan_total_credits: z.number().int().describe("The total number of API credits included in the current subscription plan.")
|
|
9
|
+
end_date: z.string().describe("The end date of the current billing period in ISO 8601 format (e.g., '2026-02-07T11:34:42.437395').").nullable(),
|
|
10
|
+
plan_name: z.string().describe("The name of the current subscription plan (e.g., 'Free', 'Hobby', 'Business').").nullable(),
|
|
11
|
+
start_date: z.string().describe("The start date of the current billing period in ISO 8601 format (e.g., '2026-01-08T11:34:42.437390').").nullable(),
|
|
12
|
+
remained_credits: z.number().int().describe("The number of API credits remaining for the current billing period.").nullable(),
|
|
13
|
+
plan_total_credits: z.number().int().describe("The total number of API credits included in the current subscription plan.").nullable()
|
|
14
14
|
}).describe("Response model for GetApiCreditsUsage action.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-credits-usage.mjs","names":[],"sources":["../../src/actions/get-api-credits-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantGetApiCreditsUsageInput
|
|
1
|
+
{"version":3,"file":"get-api-credits-usage.mjs","names":[],"sources":["../../src/actions/get-api-credits-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantGetApiCreditsUsageInput = z.object({}).describe(\"Request model for GetApiCreditsUsage action.\\nThis action does not require any specific request parameters beyond authentication.\");\nexport const ScrapingantGetApiCreditsUsageOutput = z.object({\n end_date: z.string().describe(\"The end date of the current billing period in ISO 8601 format (e.g., '2026-02-07T11:34:42.437395').\").nullable(),\n plan_name: z.string().describe(\"The name of the current subscription plan (e.g., 'Free', 'Hobby', 'Business').\").nullable(),\n start_date: z.string().describe(\"The start date of the current billing period in ISO 8601 format (e.g., '2026-01-08T11:34:42.437390').\").nullable(),\n remained_credits: z.number().int().describe(\"The number of API credits remaining for the current billing period.\").nullable(),\n plan_total_credits: z.number().int().describe(\"The total number of API credits included in the current subscription plan.\").nullable(),\n}).describe(\"Response model for GetApiCreditsUsage action.\");\n\nexport const scrapingantGetApiCreditsUsage = action(\"SCRAPINGANT_GET_API_CREDITS_USAGE\", {\n slug: \"scrapingant-get-api-credits-usage\",\n name: \"Get API Credits Usage\",\n description: \"This tool retrieves the current API credit usage status for the authenticated ScrapingAnt account. It enables users to monitor their consumption of API credits, check their current usage against the subscription limits, and manage their API credits effectively.\",\n input: ScrapingantGetApiCreditsUsageInput,\n output: ScrapingantGetApiCreditsUsageOutput,\n});\n"],"mappings":";;AAaA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbgD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mIAa/D;CACP,QAbiD,EAAE,OAAO;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC9I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EAClJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC5H,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACvI,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
@@ -26,7 +26,7 @@ const ScrapingantScrapeWebPageInput = zod.z.object({
|
|
|
26
26
|
wait_for_selector: zod.z.string().describe("CSS selector to wait for before returning the result. Requires headless browser.").optional(),
|
|
27
27
|
return_page_source: zod.z.boolean().default(false).describe("Enable to return the raw HTML from the server without JavaScript rendering. Requires headless browser. Defaults to False.").optional()
|
|
28
28
|
});
|
|
29
|
-
const ScrapingantScrapeWebPageOutput = zod.z.object({ content: zod.z.string().describe("The HTML content of the scraped web page.") });
|
|
29
|
+
const ScrapingantScrapeWebPageOutput = zod.z.object({ content: zod.z.string().describe("The HTML content of the scraped web page.").nullable() });
|
|
30
30
|
const scrapingantScrapeWebPage = require_action.action("SCRAPINGANT_SCRAPE_WEB_PAGE", {
|
|
31
31
|
slug: "scrapingant-scrape-web-page",
|
|
32
32
|
name: "Scrape Web Page",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrape-web-page.cjs","names":["z","action"],"sources":["../../src/actions/scrape-web-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantScrapeWebPageInput
|
|
1
|
+
{"version":3,"file":"scrape-web-page.cjs","names":["z","action"],"sources":["../../src/actions/scrape-web-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantScrapeWebPageInput = z.object({\n url: z.string().describe(\"URL of the web page to scrape.\"),\n browser: z.boolean().default(true).describe(\"Enable to use a headless browser for scraping. Defaults to True. If False, JavaScript will not be rendered.\").optional(),\n cookies: z.string().describe(\"Cookies to pass with the scraping request.\").optional(),\n js_snippet: z.string().describe(\"Base64 encoded JavaScript snippet to execute on the page. Requires headless browser.\").optional(),\n proxy_type: z.enum([\"datacenter\", \"residential\"]).describe(\"Specifies the type of proxy to use.\").optional(),\n proxy_country: z.string().describe(\"Specifies the country for the proxy.\").optional(),\n block_resource: z.array(z.enum([\"document\", \"stylesheet\", \"image\", \"media\", \"font\", \"script\", \"texttrack\", \"xhr\", \"fetch\", \"eventsource\", \"websocket\", \"manifest\", \"other\"])).describe(\"List of resource types to block. Requires headless browser.\").optional(),\n wait_for_selector: z.string().describe(\"CSS selector to wait for before returning the result. Requires headless browser.\").optional(),\n return_page_source: z.boolean().default(false).describe(\"Enable to return the raw HTML from the server without JavaScript rendering. Requires headless browser. Defaults to False.\").optional(),\n});\nexport const ScrapingantScrapeWebPageOutput = z.object({\n content: z.string().describe(\"The HTML content of the scraped web page.\").nullable(),\n});\n\nexport const scrapingantScrapeWebPage = action(\"SCRAPINGANT_SCRAPE_WEB_PAGE\", {\n slug: \"scrapingant-scrape-web-page\",\n name: \"Scrape Web Page\",\n description: \"This tool scrapes a web page using the ScrapingAnt API. It fetches the HTML content of the specified URL. Users can customize the scraping behavior by enabling a headless browser, using proxies, waiting for specific elements, executing JavaScript, passing cookies, and blocking certain resources.\",\n input: ScrapingantScrapeWebPageInput,\n output: ScrapingantScrapeWebPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACzD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACpK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACjI,YAAYA,IAAAA,EAAE,KAAK,CAAC,cAAc,aAAa,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAc;EAAS;EAAS;EAAQ;EAAU;EAAa;EAAO;EAAS;EAAe;EAAa;EAAY;CAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC/P,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACpI,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAChM,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,EACrF,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,48 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/scrape-web-page.d.ts
|
|
4
|
-
declare const ScrapingantScrapeWebPageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapingantScrapeWebPageInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
browser: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
+
cookies: z.ZodOptional<z.ZodString>;
|
|
8
|
+
js_snippet: z.ZodOptional<z.ZodString>;
|
|
9
|
+
proxy_type: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
datacenter: "datacenter";
|
|
11
|
+
residential: "residential";
|
|
12
|
+
}>>;
|
|
13
|
+
proxy_country: z.ZodOptional<z.ZodString>;
|
|
14
|
+
block_resource: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
15
|
+
document: "document";
|
|
16
|
+
stylesheet: "stylesheet";
|
|
17
|
+
image: "image";
|
|
18
|
+
media: "media";
|
|
19
|
+
font: "font";
|
|
20
|
+
script: "script";
|
|
21
|
+
texttrack: "texttrack";
|
|
22
|
+
xhr: "xhr";
|
|
23
|
+
fetch: "fetch";
|
|
24
|
+
eventsource: "eventsource";
|
|
25
|
+
websocket: "websocket";
|
|
26
|
+
manifest: "manifest";
|
|
27
|
+
other: "other";
|
|
28
|
+
}>>>;
|
|
29
|
+
wait_for_selector: z.ZodOptional<z.ZodString>;
|
|
30
|
+
return_page_source: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const ScrapingantScrapeWebPageOutput: z.ZodObject<{
|
|
33
|
+
content: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const scrapingantScrapeWebPage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
|
+
url: string;
|
|
37
|
+
browser?: boolean | undefined;
|
|
38
|
+
cookies?: string | undefined;
|
|
39
|
+
js_snippet?: string | undefined;
|
|
40
|
+
proxy_type?: "datacenter" | "residential" | undefined;
|
|
41
|
+
proxy_country?: string | undefined;
|
|
42
|
+
block_resource?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "eventsource" | "websocket" | "manifest" | "other")[] | undefined;
|
|
43
|
+
wait_for_selector?: string | undefined;
|
|
44
|
+
return_page_source?: boolean | undefined;
|
|
45
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
46
|
//#endregion
|
|
8
47
|
export { scrapingantScrapeWebPage };
|
|
9
48
|
//# sourceMappingURL=scrape-web-page.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrape-web-page.d.cts","names":[],"sources":["../../src/actions/scrape-web-page.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"scrape-web-page.d.cts","names":[],"sources":["../../src/actions/scrape-web-page.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,48 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/scrape-web-page.d.ts
|
|
4
|
-
declare const ScrapingantScrapeWebPageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapingantScrapeWebPageInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
browser: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
+
cookies: z.ZodOptional<z.ZodString>;
|
|
8
|
+
js_snippet: z.ZodOptional<z.ZodString>;
|
|
9
|
+
proxy_type: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
datacenter: "datacenter";
|
|
11
|
+
residential: "residential";
|
|
12
|
+
}>>;
|
|
13
|
+
proxy_country: z.ZodOptional<z.ZodString>;
|
|
14
|
+
block_resource: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
15
|
+
document: "document";
|
|
16
|
+
stylesheet: "stylesheet";
|
|
17
|
+
image: "image";
|
|
18
|
+
media: "media";
|
|
19
|
+
font: "font";
|
|
20
|
+
script: "script";
|
|
21
|
+
texttrack: "texttrack";
|
|
22
|
+
xhr: "xhr";
|
|
23
|
+
fetch: "fetch";
|
|
24
|
+
eventsource: "eventsource";
|
|
25
|
+
websocket: "websocket";
|
|
26
|
+
manifest: "manifest";
|
|
27
|
+
other: "other";
|
|
28
|
+
}>>>;
|
|
29
|
+
wait_for_selector: z.ZodOptional<z.ZodString>;
|
|
30
|
+
return_page_source: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const ScrapingantScrapeWebPageOutput: z.ZodObject<{
|
|
33
|
+
content: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const scrapingantScrapeWebPage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
|
+
url: string;
|
|
37
|
+
browser?: boolean | undefined;
|
|
38
|
+
cookies?: string | undefined;
|
|
39
|
+
js_snippet?: string | undefined;
|
|
40
|
+
proxy_type?: "datacenter" | "residential" | undefined;
|
|
41
|
+
proxy_country?: string | undefined;
|
|
42
|
+
block_resource?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "eventsource" | "websocket" | "manifest" | "other")[] | undefined;
|
|
43
|
+
wait_for_selector?: string | undefined;
|
|
44
|
+
return_page_source?: boolean | undefined;
|
|
45
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
46
|
//#endregion
|
|
8
47
|
export { scrapingantScrapeWebPage };
|
|
9
48
|
//# sourceMappingURL=scrape-web-page.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrape-web-page.d.mts","names":[],"sources":["../../src/actions/scrape-web-page.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"scrape-web-page.d.mts","names":[],"sources":["../../src/actions/scrape-web-page.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -29,7 +29,7 @@ const scrapingantScrapeWebPage = action("SCRAPINGANT_SCRAPE_WEB_PAGE", {
|
|
|
29
29
|
wait_for_selector: z.string().describe("CSS selector to wait for before returning the result. Requires headless browser.").optional(),
|
|
30
30
|
return_page_source: z.boolean().default(false).describe("Enable to return the raw HTML from the server without JavaScript rendering. Requires headless browser. Defaults to False.").optional()
|
|
31
31
|
}),
|
|
32
|
-
output: z.object({ content: z.string().describe("The HTML content of the scraped web page.") })
|
|
32
|
+
output: z.object({ content: z.string().describe("The HTML content of the scraped web page.").nullable() })
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { scrapingantScrapeWebPage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrape-web-page.mjs","names":[],"sources":["../../src/actions/scrape-web-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantScrapeWebPageInput
|
|
1
|
+
{"version":3,"file":"scrape-web-page.mjs","names":[],"sources":["../../src/actions/scrape-web-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapingantScrapeWebPageInput = z.object({\n url: z.string().describe(\"URL of the web page to scrape.\"),\n browser: z.boolean().default(true).describe(\"Enable to use a headless browser for scraping. Defaults to True. If False, JavaScript will not be rendered.\").optional(),\n cookies: z.string().describe(\"Cookies to pass with the scraping request.\").optional(),\n js_snippet: z.string().describe(\"Base64 encoded JavaScript snippet to execute on the page. Requires headless browser.\").optional(),\n proxy_type: z.enum([\"datacenter\", \"residential\"]).describe(\"Specifies the type of proxy to use.\").optional(),\n proxy_country: z.string().describe(\"Specifies the country for the proxy.\").optional(),\n block_resource: z.array(z.enum([\"document\", \"stylesheet\", \"image\", \"media\", \"font\", \"script\", \"texttrack\", \"xhr\", \"fetch\", \"eventsource\", \"websocket\", \"manifest\", \"other\"])).describe(\"List of resource types to block. Requires headless browser.\").optional(),\n wait_for_selector: z.string().describe(\"CSS selector to wait for before returning the result. Requires headless browser.\").optional(),\n return_page_source: z.boolean().default(false).describe(\"Enable to return the raw HTML from the server without JavaScript rendering. Requires headless browser. Defaults to False.\").optional(),\n});\nexport const ScrapingantScrapeWebPageOutput = z.object({\n content: z.string().describe(\"The HTML content of the scraped web page.\").nullable(),\n});\n\nexport const scrapingantScrapeWebPage = action(\"SCRAPINGANT_SCRAPE_WEB_PAGE\", {\n slug: \"scrapingant-scrape-web-page\",\n name: \"Scrape Web Page\",\n description: \"This tool scrapes a web page using the ScrapingAnt API. It fetches the HTML content of the specified URL. Users can customize the scraping behavior by enabling a headless browser, using proxies, waiting for specific elements, executing JavaScript, passing cookies, and blocking certain resources.\",\n input: ScrapingantScrapeWebPageInput,\n output: ScrapingantScrapeWebPageOutput,\n});\n"],"mappings":";;AAmBA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB2C,EAAE,OAAO;EACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EACzD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;EACpK,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EACjI,YAAY,EAAE,KAAK,CAAC,cAAc,aAAa,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC3G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACpF,gBAAgB,EAAE,MAAM,EAAE,KAAK;GAAC;GAAY;GAAc;GAAS;GAAS;GAAQ;GAAU;GAAa;GAAO;GAAS;GAAe;GAAa;GAAY;EAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC/P,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EACpI,oBAAoB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAChM,CASS;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,EACrF,CAOU;AACV,CAAC"}
|
|
@@ -27,7 +27,7 @@ const ScrapingantScrapeWebpagePostInput = zod.z.object({
|
|
|
27
27
|
wait_for_selector: zod.z.string().describe("CSS selector to wait for before returning the result. Requires browser=True.").optional(),
|
|
28
28
|
return_page_source: zod.z.boolean().default(false).describe("Enable to return the raw HTML from the server without JavaScript rendering. Requires browser=True. Defaults to False.").optional()
|
|
29
29
|
});
|
|
30
|
-
const ScrapingantScrapeWebpagePostOutput = zod.z.object({ content: zod.z.string().describe("The HTML content of the scraped web page returned from the POST request.") });
|
|
30
|
+
const ScrapingantScrapeWebpagePostOutput = zod.z.object({ content: zod.z.string().describe("The HTML content of the scraped web page returned from the POST request.").nullable() });
|
|
31
31
|
const scrapingantScrapeWebpagePost = require_action.action("SCRAPINGANT_SCRAPE_WEBPAGE_POST", {
|
|
32
32
|
slug: "scrapingant-scrape-webpage-post",
|
|
33
33
|
name: "Scrape Webpage via POST",
|