npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-asanscrape

v1.0.20

Published

n8n community node to trigger Asanscrape robots and wait for their result.

Downloads

1,302

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 watch

Tip: 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 n8n

If you publish the package to npm (npm publish), you can install it directly on the n8n host with:

n8n install n8n-nodes-asanscrape

Using the node

  1. Open n8n and add the Asanscrape node to your workflow.
  2. Create new credentials of type Asanscrape API and paste your token (Authorization: token <YOUR_TOKEN>).
  3. Choose Run Robot as the operation (the only option for now).
  4. From the اسکریپر dropdown pick the scraper you want to run. The UI shows Persian labels but the correct robot slug is sent automatically.
  5. Fill in the dedicated fields for the selected scraper:
  • اسکریپر پروفایل اینستاگرام → وارد کردن نام کاربری اینستاگرام (می‌توانید ID یا لینک کامل بدهید).
  • اسکریپر هشتگ اینستاگرام → مقداردهی هشتگ اینستاگرام (بدون درج علامت #).
    • اسکریپر هشتگ اینستاگرام، اسکریپر گوگل مپ با نقشه، اسکریپر گوگل مپ بدون نقشه و اسکریپر گوگل سرچ می‌توانند توکن صفحه بعدی (توکن بعدی) را نیز دریافت کنند تا از ادامه لیست استفاده شود.
    • اسکریپر گوگل مپ با نقشه → مقداردهی فیلدهای کلید واژه, زبان, کشور و مختصات (عرض جغرافیایی, طول جغرافیایی, بزرگنمایی). این سه مقدار آخر به صورت خودکار در ساختار location قرار می‌گیرند.
    • اسکریپر گوگل مپ بدون نقشه → تنها به کلید واژه (گوگل مپ بدون نقشه) نیاز دارد و در صورت نیاز می‌توانید توکن بعدی را وارد کنید.
    • اسکریپر گوگل سرچ → مقداردهی کلید واژه جستجو و دامنه (مثلاً google.com) و در صورت نیاز بازه زمانی تاریخ شروع و تاریخ پایان. اگر این فیلدها خالی باشند ارسال نمی‌شوند.
  1. 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 the accept and Content-Type: application/json headers, while the credential injects the Authorization: token … header.

Publishing to npm

  1. Sign in to npm once: npm login
  2. Commit any pending changes, then bump the version (patch/minor/major as needed): npm version patch
  3. Publish the package: npm publish
  4. Confirm that n8n-nodes-asanscrape is visible on https://www.npmjs.com/package/n8n-nodes-asanscrape

The prepare script builds the TypeScript sources automatically before publishing.

Installing on n8n Cloud

  1. Open your n8n Cloud workspace and go to Settings → Community Nodes.
  2. Choose Install and search for n8n-nodes-asanscrape (or paste the package name directly).
  3. Review the risk warning and confirm the installation.
  4. 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.