Skip to content

Commit 99d800d

Browse files
authored
Firecrawl - update Crawl URL to v2 (#18280)
* update crawl-url to v2 * pnpm-lock.yaml * versions
1 parent 5e31cad commit 99d800d

File tree

9 files changed

+32
-21
lines changed

9 files changed

+32
-21
lines changed

components/firecrawl/actions/crawl-url/crawl-url.mjs

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "firecrawl-crawl-url",
66
name: "Crawl URL",
77
description: "Crawls a given URL and returns the contents of sub-pages. [See the documentation](https://docs.firecrawl.dev/api-reference/endpoint/crawl-post)",
8-
version: "1.0.3",
8+
version: "1.1.0",
99
type: "action",
1010
props: {
1111
firecrawl,
@@ -15,6 +15,12 @@ export default {
1515
"url",
1616
],
1717
},
18+
prompt: {
19+
type: "string",
20+
label: "Prompt",
21+
description: "A prompt to use to generate the crawler options (all the parameters below) from natural language. Explicitly set parameters will override the generated equivalents.",
22+
optional: true,
23+
},
1824
excludePaths: {
1925
type: "string[]",
2026
label: "Exclude Paths",
@@ -27,16 +33,20 @@ export default {
2733
description: "Similar to `Exclude Paths`, but if set, only the paths matching the specified patterns will be included",
2834
optional: true,
2935
},
30-
maxDepth: {
36+
maxDiscoveryDepth: {
3137
type: "integer",
32-
label: "Max Depth",
33-
description: "Maximum depth to crawl relative to the entered URL",
38+
label: "Max Discovery Depth",
39+
description: "Maximum depth to crawl based on discovery order. The root site and sitemapped pages has a discovery depth of 0. For example, if you set it to 1, and you set sitemap: 'skip', you will only crawl the entered URL and all URLs that are linked on that page.",
3440
optional: true,
3541
},
36-
ignoreSitemap: {
37-
type: "boolean",
38-
label: "Ignore Sitemap",
39-
description: "Ignore the website sitemap when crawling",
42+
sitemap: {
43+
type: "string",
44+
label: "Sitemap",
45+
description: "Sitemap mode when crawling. If you set it to 'skip', the crawler will ignore the website sitemap and only crawl the entered URL and discover pages from there onwards.",
46+
options: [
47+
"skip",
48+
"include",
49+
],
4050
optional: true,
4151
},
4252
ignoreQueryParameters: {
@@ -51,10 +61,10 @@ export default {
5161
description: "Maximum number of pages to crawl",
5262
optional: true,
5363
},
54-
allowBackwardLinks: {
64+
crawlEntireDomain: {
5565
type: "boolean",
56-
label: "Allow Backward Links",
57-
description: "Enables the crawler to navigate from a specific URL to previously linked pages",
66+
label: "Crawl Entire Domain",
67+
description: "Allows the crawler to follow internal links to sibling or parent URLs, not just child paths.",
5868
optional: true,
5969
},
6070
allowExternalLinks: {

components/firecrawl/actions/extract-data/extract-data.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "firecrawl-extract-data",
77
name: "Extract Data",
88
description: "Extract structured data from one or multiple URLs. [See the documentation](https://docs.firecrawl.dev/api-reference/endpoint/extract)",
9-
version: "0.0.2",
9+
version: "0.0.3",
1010
type: "action",
1111
props: {
1212
firecrawl,

components/firecrawl/actions/get-crawl-status/get-crawl-status.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "firecrawl-get-crawl-status",
55
name: "Get Crawl Data",
66
description: "Obtains the status and data from a previous crawl operation. [See the documentation](https://docs.firecrawl.dev/api-reference/endpoint/crawl-get)",
7-
version: "0.0.4",
7+
version: "0.0.5",
88
type: "action",
99
props: {
1010
firecrawl,

components/firecrawl/actions/get-extract-status/get-extract-status.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "firecrawl-get-extract-status",
55
name: "Get Extract Data",
66
description: "Obtains the status and data from a previous extract operation. [See the documentation](https://docs.firecrawl.dev/api-reference/endpoint/extract-get)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
firecrawl,

components/firecrawl/actions/map-url/map-url.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "firecrawl-map-url",
55
name: "Map URL",
66
description: "Maps a given URL using Firecrawl's Map endpoint. Optionally, you can provide a search term to filter the mapping. [See the documentation](https://docs.firecrawl.dev/features/map)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
firecrawl,

components/firecrawl/actions/scrape-page/scrape-page.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Scrape Page",
88
description:
99
"Scrapes a URL and returns content from that page. [See the documentation](https://docs.firecrawl.dev/api-reference/endpoint/scrape)",
10-
version: "1.0.2",
10+
version: "1.0.3",
1111
type: "action",
1212
props: {
1313
firecrawl,

components/firecrawl/actions/search/search.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "firecrawl-search",
55
name: "Search",
66
description: "Search the web and get full content from results. [See the documentation](https://docs.firecrawl.dev/features/search)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
firecrawl,

components/firecrawl/firecrawl.app.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ export default {
2424
},
2525
methods: {
2626
_baseUrl() {
27-
return "https://api.firecrawl.dev/v1";
27+
return "https://api.firecrawl.dev";
2828
},
2929
_headers() {
3030
return {
3131
Authorization: `Bearer ${this.$auth.api_key}`,
3232
};
3333
},
3434
_makeRequest({
35-
$ = this, path, ...opts
35+
$ = this, path, version = "v1", ...opts
3636
}) {
3737
return axios($, {
38-
url: this._baseUrl() + path,
38+
url: `${this._baseUrl()}/${version}${path}`,
3939
headers: this._headers(),
4040
...opts,
4141
});
@@ -44,6 +44,7 @@ export default {
4444
return this._makeRequest({
4545
method: "POST",
4646
path: "/crawl",
47+
version: "v2",
4748
...opts,
4849
});
4950
},

components/firecrawl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/firecrawl",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Pipedream FireCrawl Components",
55
"main": "firecrawl.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)