{"_id":"@asanscrape/n8n-nodes-asanscrape","name":"@asanscrape/n8n-nodes-asanscrape","dist-tags":{"latest":"1.0.21"},"versions":{"1.0.21":{"name":"@asanscrape/n8n-nodes-asanscrape","version":"1.0.21","description":"n8n community node to trigger Asanscrape robots and wait for their result.","keywords":["n8n-community-node-package"],"license":"MIT","author":{"name":"Asanscrape"},"publishConfig":{"access":"public"},"main":"dist/main.js","types":"dist/main.d.ts","scripts":{"build":"tsc","postbuild":"node ./scripts/copy-assets.js","watch":"tsc --watch","prepare":"npm run build"},"dependencies":{"tslib":"^2.6.2"},"devDependencies":{"@types/node":"^18.19.31","n8n-workflow":"^1.113.0","typescript":"^5.4.5"},"peerDependencies":{"n8n-workflow":"*"},"n8n":{"n8nNodesApiVersion":1,"strict":true,"nodes":["dist/nodes/Asanscrape/Asanscrape.node.js"],"credentials":["dist/credentials/AsanscrapeApi.credentials.js"]},"_id":"@asanscrape/n8n-nodes-asanscrape@1.0.21","gitHead":"0aee59226b6f8bb04b15228f3526b9a88690a072","_nodeVersion":"24.4.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-Uwl/ALt5E4nXiI3EYTBT8HVEQiA24beVnB3DvDkhh/Oa1DK/MUIbKqzJtliIpYfw7W8TxvafLeWY96xJKymgpA==","shasum":"12dc4545240a78fb5d5e09f8abbc2ffc3296b07e","tarball":"https://registry.npmjs.org/@asanscrape/n8n-nodes-asanscrape/-/n8n-nodes-asanscrape-1.0.21.tgz","fileCount":23,"unpackedSize":191074,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFUQMJORTTvdOPWvWTIB1DDXrxdMB+jCfi5fu2JQyzJTAiAzagWJQdDFu2f4nHeiOBURmnEj27K8NkxTl1S11ixJDQ=="}]},"_npmUser":{"name":"asanscrape","email":"itishosseinian@gmail.com"},"directories":{},"maintainers":[{"name":"asanscrape","email":"itishosseinian@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/n8n-nodes-asanscrape_1.0.21_1781752425952_0.6205124332741818"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-18T03:13:45.736Z","1.0.21":"2026-06-18T03:13:46.097Z","modified":"2026-06-18T03:13:46.378Z"},"maintainers":[{"name":"asanscrape","email":"itishosseinian@gmail.com"}],"description":"n8n community node to trigger Asanscrape robots and wait for their result.","keywords":["n8n-community-node-package"],"author":{"name":"Asanscrape"},"license":"MIT","readme":"# n8n-nodes-asanscrape\n\nCommunity node for [n8n](https://n8n.io) that triggers an [Asanscrape](https://asanscrape.com) robot and waits for the result.\n\n## Quickstart\n\nCopy and run each step in the root of this project:\n\n```bash\n# 1. Install dependencies\nnpm install\n\n# 2. (Optional) Copy your brand icon into nodes/Asanscrape/asaniconv4.png (PNG recommended)\ncp /path/to/logo.png nodes/Asanscrape/asaniconv4.png\n\n# 3. Build the TypeScript sources into /dist\nnpm run build\n\n# 4. (Optional) Rebuild automatically while editing\nnpm run watch\n```\n\n> 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`).\n\n## Installing into n8n\n\nAfter the build completes, you can install the node package into any self-hosted n8n instance.\n\n```bash\n# 1. From this folder, create a tarball of the compiled package\nnpm pack\n\n# 2. Copy the generated *.tgz file onto the machine that runs n8n\n\n# 3. On the n8n host, install the tarball (replace <version> with the filename that was created)\nn8n install ./asanscrape-n8n-nodes-asanscrape-<version>.tgz\n\n# 4. Restart n8n so the new node appears in the editor\nsudo systemctl restart n8n\n```\n\nIf you publish the package to npm (`npm publish`), you can install it directly on the n8n host with:\n\n```bash\nn8n install @asanscrape/n8n-nodes-asanscrape\n```\n\n## Using the node\n\n1. Open n8n and add the **Asanscrape** node to your workflow.\n2. Create new credentials of type **Asanscrape API** and paste your token (`Authorization: token <YOUR_TOKEN>`).\n3. Choose **Run Robot** as the operation (the only option for now).\n4. From the **اسکریپر** dropdown pick the scraper you want to run. The UI shows Persian labels but the correct robot slug is sent automatically.\n5. Fill in the dedicated fields for the selected scraper:\n- **اسکریپر پروفایل اینستاگرام** → وارد کردن **نام کاربری اینستاگرام** (می‌توانید ID یا لینک کامل بدهید).\n- **اسکریپر هشتگ اینستاگرام** → مقداردهی **هشتگ اینستاگرام** (بدون درج علامت #).\n   - **اسکریپر هشتگ اینستاگرام**، **اسکریپر گوگل مپ با نقشه**، **اسکریپر گوگل مپ بدون نقشه** و **اسکریپر گوگل سرچ** می‌توانند توکن صفحه بعدی (**توکن بعدی**) را نیز دریافت کنند تا از ادامه لیست استفاده شود.\n   - **اسکریپر گوگل مپ با نقشه** → مقداردهی فیلدهای **کلید واژه**, **زبان**, **کشور** و مختصات (**عرض جغرافیایی**, **طول جغرافیایی**, **بزرگنمایی**). این سه مقدار آخر به صورت خودکار در ساختار `location` قرار می‌گیرند.\n   - **اسکریپر گوگل مپ بدون نقشه** → تنها به **کلید واژه (گوگل مپ بدون نقشه)** نیاز دارد و در صورت نیاز می‌توانید توکن بعدی را وارد کنید.\n   - **اسکریپر گوگل سرچ** → مقداردهی **کلید واژه جستجو** و **دامنه** (مثلاً google.com) و در صورت نیاز بازه زمانی **تاریخ شروع** و **تاریخ پایان**. اگر این فیلدها خالی باشند ارسال نمی‌شوند.\n   - **اسکریپر شبح** → مقداردهی **آدرس هدف** و تعیین گزینه **اجرای جاوااسکریپت** (true/false).\n6. 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.\n   The node automatically adds the `accept` and `Content-Type: application/json` headers, while the credential injects the `Authorization: token …` header.\n\n## Publishing to npm\n\n1. Sign in to npm once: `npm login`\n2. Commit any pending changes, then bump the version (patch/minor/major as needed): `npm version patch`\n3. Publish the package: `npm publish` (scoped packages publish publicly via the `publishConfig.access` setting)\n4. Confirm that `@asanscrape/n8n-nodes-asanscrape` is visible on https://www.npmjs.com/package/@asanscrape/n8n-nodes-asanscrape\n\nThe `prepare` script builds the TypeScript sources automatically before publishing.\n\n## Installing on n8n Cloud\n\n1. Open your n8n Cloud workspace and go to **Settings → Community Nodes**.\n2. Choose **Install** and search for `@asanscrape/n8n-nodes-asanscrape` (or paste the package name directly).\n3. Review the risk warning and confirm the installation.\n4. Add the **Asanscrape** node to a workflow, create **Asanscrape API** credentials, and run it as usual.\n\n## Request reference\n\nThe node sends exactly the same payload as the working cURL call you provided:\n\n```bash\ncurl --location 'https://backend.asanscrape.com/robots/create/task/wait-for-result/' \\\n  --header 'accept: */*' \\\n  --header 'Content-Type: application/json' \\\n  --header 'Authorization: token <your token>' \\\n  --data '{\n    \"robot\": \"instagram profile\",\n    \"inputs\": {\n      \"username_or_id_or_url\": \"asanscrape\"\n    }\n  }'\n```\n\nCredentials inject the `Authorization: token <your token>` header automatically.\n","readmeFilename":"README.md","_rev":"1-423a7e932481c171323b2b2024de015f"}