Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 21 additions & 11 deletions components/firecrawl/actions/crawl-url/crawl-url.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "firecrawl-crawl-url",
name: "Crawl URL",
description: "Crawls a given URL and returns the contents of sub-pages. [See the documentation](https://docs.firecrawl.dev/api-reference/endpoint/crawl-post)",
version: "1.0.3",
version: "1.1.0",
type: "action",
props: {
firecrawl,
Expand All @@ -15,6 +15,12 @@ export default {
"url",
],
},
prompt: {
type: "string",
label: "Prompt",
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.",
optional: true,
},
excludePaths: {
type: "string[]",
label: "Exclude Paths",
Expand All @@ -27,16 +33,20 @@ export default {
description: "Similar to `Exclude Paths`, but if set, only the paths matching the specified patterns will be included",
optional: true,
},
maxDepth: {
maxDiscoveryDepth: {
type: "integer",
label: "Max Depth",
description: "Maximum depth to crawl relative to the entered URL",
label: "Max Discovery Depth",
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.",
optional: true,
},
ignoreSitemap: {
type: "boolean",
label: "Ignore Sitemap",
description: "Ignore the website sitemap when crawling",
sitemap: {
type: "string",
label: "Sitemap",
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.",
options: [
"skip",
"include",
],
optional: true,
},
ignoreQueryParameters: {
Expand All @@ -51,10 +61,10 @@ export default {
description: "Maximum number of pages to crawl",
optional: true,
},
allowBackwardLinks: {
crawlEntireDomain: {
type: "boolean",
label: "Allow Backward Links",
description: "Enables the crawler to navigate from a specific URL to previously linked pages",
label: "Crawl Entire Domain",
description: "Allows the crawler to follow internal links to sibling or parent URLs, not just child paths.",
optional: true,
},
allowExternalLinks: {
Expand Down
2 changes: 1 addition & 1 deletion components/firecrawl/actions/extract-data/extract-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "firecrawl-extract-data",
name: "Extract Data",
description: "Extract structured data from one or multiple URLs. [See the documentation](https://docs.firecrawl.dev/api-reference/endpoint/extract)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
firecrawl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "firecrawl-get-crawl-status",
name: "Get Crawl Data",
description: "Obtains the status and data from a previous crawl operation. [See the documentation](https://docs.firecrawl.dev/api-reference/endpoint/crawl-get)",
version: "0.0.4",
version: "0.0.5",
type: "action",
props: {
firecrawl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "firecrawl-get-extract-status",
name: "Get Extract Data",
description: "Obtains the status and data from a previous extract operation. [See the documentation](https://docs.firecrawl.dev/api-reference/endpoint/extract-get)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
firecrawl,
Expand Down
2 changes: 1 addition & 1 deletion components/firecrawl/actions/map-url/map-url.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "firecrawl-map-url",
name: "Map URL",
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)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
firecrawl,
Expand Down
2 changes: 1 addition & 1 deletion components/firecrawl/actions/scrape-page/scrape-page.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "Scrape Page",
description:
"Scrapes a URL and returns content from that page. [See the documentation](https://docs.firecrawl.dev/api-reference/endpoint/scrape)",
version: "1.0.2",
version: "1.0.3",
type: "action",
props: {
firecrawl,
Expand Down
2 changes: 1 addition & 1 deletion components/firecrawl/actions/search/search.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "firecrawl-search",
name: "Search",
description: "Search the web and get full content from results. [See the documentation](https://docs.firecrawl.dev/features/search)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
firecrawl,
Expand Down
7 changes: 4 additions & 3 deletions components/firecrawl/firecrawl.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ export default {
},
methods: {
_baseUrl() {
return "https://api.firecrawl.dev/v1";
return "https://api.firecrawl.dev";
},
_headers() {
return {
Authorization: `Bearer ${this.$auth.api_key}`,
};
},
_makeRequest({
$ = this, path, ...opts
$ = this, path, version = "v1", ...opts
}) {
return axios($, {
url: this._baseUrl() + path,
url: `${this._baseUrl()}/${version}${path}`,
headers: this._headers(),
...opts,
});
Expand All @@ -44,6 +44,7 @@ export default {
return this._makeRequest({
method: "POST",
path: "/crawl",
version: "v2",
...opts,
});
},
Expand Down
2 changes: 1 addition & 1 deletion components/firecrawl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/firecrawl",
"version": "1.3.0",
"version": "1.3.1",
"description": "Pipedream FireCrawl Components",
"main": "firecrawl.app.mjs",
"keywords": [
Expand Down
Loading
Loading