n8n-nodes-asanscrape
v1.0.20
Published
n8n community node to trigger Asanscrape robots and wait for their result.
Downloads
1,302
Maintainers
Keywords
Readme
n8n-nodes-asanscrape
Community node for n8n that triggers an Asanscrape robot and waits for the result.
Quickstart
Copy and run each step in the root of this project:
# 1. Install dependencies
npm install
# 2. (Optional) Copy your brand icon into nodes/Asanscrape/asaniconv4.png (PNG recommended)
cp /path/to/logo.png nodes/Asanscrape/asaniconv4.png
# 3. Build the TypeScript sources into /dist
npm run build
# 4. (Optional) Rebuild automatically while editing
npm run watchTip: n8n renders PNG/SVG icons. If your logo is a JPEG, convert it once (for example on macOS
sips -s format png logo.jpeg --out nodes/Asanscrape/asaniconv4.png).
Installing into n8n
After the build completes, you can install the node package into any self-hosted n8n instance.
# 1. From this folder, create a tarball of the compiled package
npm pack
# 2. Copy the generated *.tgz file onto the machine that runs n8n
# 3. On the n8n host, install the tarball (replace <version> with the filename that was created)
n8n install ./n8n-nodes-asanscrape-<version>.tgz
# 4. Restart n8n so the new node appears in the editor
sudo systemctl restart n8nIf you publish the package to npm (npm publish), you can install it directly on the n8n host with:
n8n install n8n-nodes-asanscrapeUsing the node
- Open n8n and add the Asanscrape node to your workflow.
- Create new credentials of type Asanscrape API and paste your token (
Authorization: token <YOUR_TOKEN>). - Choose Run Robot as the operation (the only option for now).
- From the اسکریپر dropdown pick the scraper you want to run. The UI shows Persian labels but the correct robot slug is sent automatically.
- Fill in the dedicated fields for the selected scraper:
- اسکریپر پروفایل اینستاگرام → وارد کردن نام کاربری اینستاگرام (میتوانید ID یا لینک کامل بدهید).
- اسکریپر هشتگ اینستاگرام → مقداردهی هشتگ اینستاگرام (بدون درج علامت #).
- اسکریپر هشتگ اینستاگرام، اسکریپر گوگل مپ با نقشه، اسکریپر گوگل مپ بدون نقشه و اسکریپر گوگل سرچ میتوانند توکن صفحه بعدی (توکن بعدی) را نیز دریافت کنند تا از ادامه لیست استفاده شود.
- اسکریپر گوگل مپ با نقشه → مقداردهی فیلدهای کلید واژه, زبان, کشور و مختصات (عرض جغرافیایی, طول جغرافیایی, بزرگنمایی). این سه مقدار آخر به صورت خودکار در ساختار
locationقرار میگیرند. - اسکریپر گوگل مپ بدون نقشه → تنها به کلید واژه (گوگل مپ بدون نقشه) نیاز دارد و در صورت نیاز میتوانید توکن بعدی را وارد کنید.
- اسکریپر گوگل سرچ → مقداردهی کلید واژه جستجو و دامنه (مثلاً google.com) و در صورت نیاز بازه زمانی تاریخ شروع و تاریخ پایان. اگر این فیلدها خالی باشند ارسال نمیشوند.
- Execute the node. n8n will send a POST request to
https://backend.asanscrape.com/robots/create/task/wait-for-result/and return the response JSON. The node automatically adds theacceptandContent-Type: application/jsonheaders, while the credential injects theAuthorization: token …header.
Publishing to npm
- Sign in to npm once:
npm login - Commit any pending changes, then bump the version (patch/minor/major as needed):
npm version patch - Publish the package:
npm publish - Confirm that
n8n-nodes-asanscrapeis visible on https://www.npmjs.com/package/n8n-nodes-asanscrape
The prepare script builds the TypeScript sources automatically before publishing.
Installing on n8n Cloud
- Open your n8n Cloud workspace and go to Settings → Community Nodes.
- Choose Install and search for
n8n-nodes-asanscrape(or paste the package name directly). - Review the risk warning and confirm the installation.
- Add the Asanscrape node to a workflow, create Asanscrape API credentials, and run it as usual.
Request reference
The node sends exactly the same payload as the working cURL call you provided:
curl --location 'https://backend.asanscrape.com/robots/create/task/wait-for-result/' \
--header 'accept: */*' \
--header 'Content-Type: application/json' \
--header 'Authorization: token <your token>' \
--data '{
"robot": "instagram profile",
"inputs": {
"username_or_id_or_url": "asanscrape"
}
}'Credentials inject the Authorization: token <your token> header automatically.
