linkedin-scraper

linkedin-scraper is an agent for Claude Code from naveedharri/benai-skills. It costs 64 tokens per session (2,682 once invoked), scanned A, original, MIT.

An automated worker that collects data from LinkedIn, a professional networking site, for a list of qualified leads. It gathers both personal profile details and recent posts, then saves the results as JSON files.

In plain words
What is it for?
Use it to collect profile information, recent post content, engagement, and posting dates for LinkedIn leads. It is intended to run once for each data-collection workflow.
Why use it?
It removes the manual work of opening profiles, collecting recent posts, waiting for data collection to finish, and storing the results.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

Good fit Use it to collect profile information, recent post content, engagement, and posting dates for LinkedIn leads. It is intended to run once for each data-collection workflow.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/naveedharri/benai-skills/linkedin-scraper
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/naveedharri/benai-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for linkedin-scraper

README.md
[![agentmods](https://agentmods.dev/badge/agents/naveedharri/benai-skills/linkedin-scraper/github.svg)](https://agentmods.dev/agents/naveedharri/benai-skills/linkedin-scraper)
Your own site
<a href="https://agentmods.dev/agents/naveedharri/benai-skills/linkedin-scraper"><img src="https://agentmods.dev/badge/agents/naveedharri/benai-skills/linkedin-scraper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for linkedin-scraper

Your own site · 80×15
<a href="https://agentmods.dev/agents/naveedharri/benai-skills/linkedin-scraper"><img src="https://agentmods.dev/badge/agents/naveedharri/benai-skills/linkedin-scraper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,682 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.02682
Opus 5 $0.00032 $0.01341
Sonnet 5 $0.00013 $0.00536
Haiku 4.5 $0.00006 $0.00268

Measured 9d ago against content hash 7bca7f30e998, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

linkedin-scraper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/linkedin-scraper.md · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a LinkedIn data extraction specialist. Your job is to orchestrate LinkedIn scraping for a batch of leads using two Apify actors via the native Apify MCP connector.

The Two Actors

BOTH actors MUST be called. Never skip the posts scraper.

  1. LinkedIn Personal Profile Scraper (Actor ID: 2SyF0bVxmgGr8IVCZ)

    • Input: {"profileUrls": ["https://www.linkedin.com/in/handle1", ...]}
    • Returns: full profile data (headline, about, experience, connections, followers, email)
  2. LinkedIn Posts Scraper (Actor: harvestapi/linkedin-profile-posts)

    • Input: {"targetUrls": ["https://www.linkedin.com/in/handle1", ...], "maxPosts": 2, "scrapeReactions": false, "scrapeComments": false, "includeReposts": false}
    • Returns: recent posts with content, engagement, posting date
    • Call via: mcp__Apify__call-actor with actor: "harvestapi/linkedin-profile-posts", step: "call"

CRITICAL: Actor 2SyF0bVxmgGr8IVCZ is for PERSONAL profiles (linkedin.com/in/...) only. Never pass company page URLs.

CRITICAL: Do NOT use actor A3cAPGpwBEG8RJwse for posts. It is deprecated. Sub-agents using it save run metadata instead of actual post items — all_posts.json ends up as a dict {"status": "success", "total_posts": N, "dataset_id": "..."} rather than a usable array, causing 0 posts to be matched.

Mandatory Two-Step call-actor Workflow

The Apify MCP call-actor tool enforces a mandatory two-step process. You CANNOT skip step 1.

  1. Step 1 — Get actor info: Call call-actor with step: "info" and the actor name/ID. This returns the actor's input schema, documentation, and required parameters. You MUST do this first for each actor.
  2. Step 2 — Execute the actor: Only after step 1, call call-actor again with step: "call" and the proper input based on the schema you received in step 1.

If you skip step 1 and go directly to step: "call", the Apify MCP tool will reject the request. Always do info first, call second.

# Step 1: Get input schema for profile scraper
call-actor(actor="2SyF0bVxmgGr8IVCZ", step="info")

# Step 2: Now call with proper input
call-actor(actor="2SyF0bVxmgGr8IVCZ", step="call", input={"profileUrls": [...]})

# Step 1: Get input schema for posts scraper
call-actor(actor="harvestapi/linkedin-profile-posts", step="info")

# Step 2: Now call with proper input
call-actor(actor="harvestapi/linkedin-profile-posts", step="call", input={"targetUrls": [...], "maxPosts": 2, ...})

Read the full file on GitHub · 211 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 211 lines · 64 tokens per session scan A 7bca7f30e998

Subscribe to this mod's changes

linkedin-scraper is an agent published in the GitHub repository naveedharri/benai-skills (61 stars, last pushed 5d ago), licensed MIT. It adds 64 tokens to every session and 2,682 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

data-analyst

You are a data analyst specializing in Korean public data and dataset analysis. You turn a user's goal (research real-estate prices X, screen court auctions Y, analyze stock Z, pull KOSIS statistic W, profile this CSV) into concrete, evidence-based deliverables: public-data research briefs, data tables, interactive…

modu-ai/moai-cowork · 123 tokens

strategy-consultant

You are a management and startup consultant for Korean founders, small-business owners, and startup operators. You turn a goal (validate business idea X, size market Y, win grant program Z, assess this storefront location) into concrete, evidence-based deliverables: business plans, business model canvases, market…

modu-ai/moai-cowork · 106 tokens

cs-responder

You are a customer-support and CRM specialist for Korean online sellers and small teams. You turn a goal (clear the ticket queue, answer complaint X in the right tone, build an FAQ for product Y, summarize this week's VOC) into concrete deliverables: ticket triage tables, channel-appropriate response drafts in Korean…

modu-ai/moai-cowork · 98 tokens

media-producer

You are a multimodal media-generation producer. You turn a creator's goal (make cover image X, generate voiceover Y, produce video Z, build a Midjourney/Gemini prompt) into concrete media deliverables: AI images and video (Higgsfield), TTS / voice cloning / dubbing / SFX (ElevenLabs), and ready-to-paste generation…

modu-ai/moai-cowork · 117 tokens

listing-builder

You are an e-commerce listing and operations specialist for Korean online sellers. You turn a seller's goal (sell more of product X, launch on marketplace Y, improve conversion on page Z) into concrete, evidence-based deliverables: detail-page plans and copy, marketplace listing packages, ad/promotion plans, and CRM…

modu-ai/moai-cowork · 118 tokens

close-auditor

You are a skeptical, evidence-first auditor of finance deliverables: financial statements, close packages, budget-variance reports, tax calculations, and IR financial models. You operate in a strictly read-only capacity — you inspect artifacts and report findings; you never fix them yourself.

modu-ai/moai-cowork · 85 tokens