Skip to content

Commit c3c9f03

Browse files
authored
feat: initial setup for content crawler Actor app (#2)
* Feat: Removed unnecessary files for resources such as get dataset or get run * fix: renamed the nodes folder to ApifyContentCrawler * fix: linting fixes and package naming changed to n8n-nodes-apify-content-crawler * fix: module renaming fix * feat: initial Conter Crawler Actor input setup * fix: linting fixes * feat: initial tests clean up * feat: Actor id constant in the ApifyContentCrawler.node.js * feat: execution setup * fix: trying to fix the tests * feat: Actor running in sync mode and returning scraping results * fix: prettier formatting fixes * fix: removed waitForFinish const * feat: updated the logos * fix: Minor code improvements * fix: small hack to hide "Custom API Call" option * fix: removed resource dropdown * fix: remove code duplication and create shared util functions * fix: removed setTimeout function * feat: update packages for ai tool use case * feat: code update to allow app as an AI tool * fix: prettier formatting fixes * fix: disable some linting to keep input inputs, outputs correct format
1 parent e2fa7a8 commit c3c9f03

File tree

105 files changed

+1755
-2913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1755
-2913
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
'**/*.js',
2424
'**/node_modules/**',
2525
'**/dist/**',
26-
'nodes/Apify/__tests__/**',
26+
'nodes/ApifyContentCrawler/__tests__/**',
2727
],
2828

2929
plugins: ['@stylistic'],

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ jobs:
7474
env:
7575
NODE_AUTH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_NPM_TOKEN }}
7676
run: |
77-
if pnpm view @apify/n8n-nodes-apify@${{ env.VERSION }} version > /dev/null 2>&1; then
78-
echo "Version ${{ env.VERSION }} of @apify/n8n-nodes-apify is already published to npm. Skipping publish step."
77+
if pnpm view @apify/n8n-nodes-apify-content-crawler@${{ env.VERSION }} version > /dev/null 2>&1; then
78+
echo "Version ${{ env.VERSION }} of @apify/n8n-nodes-apify-content-crawler is already published to npm. Skipping publish step."
7979
else
80-
echo "Publishing @apify/n8n-nodes-apify@${{ env.VERSION }} to npm..."
80+
echo "Publishing @apify/n8n-nodes-apify-content-crawler@${{ env.VERSION }} to npm..."
8181
pnpm publish --access public --no-git-checks
8282
fi

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Create the `custom` directory inside `~/.n8n` (if it doesn't exist), then symlin
4949

5050
```bash
5151
mkdir -p ~/.n8n/custom
52-
ln -s /full/path/to/n8n-nodes-apify ~/.n8n/custom/n8n-nodes-apify # replace full/path/to with the path to your n8n-nodes-apify directory
52+
ln -s /full/path/to/n8n-nodes-apify-content-crawler ~/.n8n/custom/n8n-nodes-apify-content-crawler # replace full/path/to with the path to your n8n-nodes-apify-content-crawler directory
5353
```
5454

5555
> **Note:** Use the absolute path in the symlink for compatibility.
@@ -266,13 +266,13 @@ Regardless of how you create and publish the GitHub Release:
266266
3. Build and test processes.
267267
4. Update `package.json` and `pnpm-lock.yaml` to version `X.Y.Z`.
268268
5. Commit these version changes back to the branch the release was targeted from with a message like `chore(release): set version to X.Y.Z [skip ci]`.
269-
6. Publish the package `@apify/[email protected]` to npm.
269+
6. Publish the package `@apify/n8n-nodes-apify-content-crawler@X.Y.Z` to npm.
270270

271271
2. **Verify the Package on npm:**
272272
After the workflow successfully completes (check the "Actions" tab in your GitHub repository):
273273
* Verify the new version on npm:
274274
```bash
275-
pnpm view @apify/n8n-nodes-apify version
275+
pnpm view @apify/n8n-nodes-apify-content-crawler version
276276
```
277277
This should print `X.Y.Z`.
278278

@@ -302,4 +302,4 @@ Track changes and updates to the node here.
302302
If you encounter issues:
303303
1. Check the [Apify API documentation](https://docs.apify.com)
304304
2. Review the [n8n Community Nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
305-
3. Open an issue in the [GitHub repository](https://github.com/apify/n8n-nodes-apify)
305+
3. Open an issue in the [GitHub repository](https://github.com/apify/n8n-nodes-apify-content-crawler)

icons/apify.svg

Lines changed: 5 additions & 1 deletion
Loading

nodes.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path');
22

33
module.exports = {
4-
packageName: 'n8n-nodes-apify',
4+
packageName: 'n8n-nodes-apify-content-crawler',
55
credentials: {
66
ApifyApi: {
77
displayName: 'Apify API key connection',

nodes/Apify/ApifyTrigger.node.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

nodes/Apify/ApifyTrigger.node.ts

Lines changed: 0 additions & 235 deletions
This file was deleted.

0 commit comments

Comments
 (0)