mcpbeat

Linkedin Commenter Extractor

gooseworks-ai/linkedin-commenter-extractor

> Extract commenters from LinkedIn posts via Apify. Returns commenter names, titles, LinkedIn profile URLs, and comment text. Use to find warm leads engaging with relevant discussions. No LinkedIn cookies required.

3k tokens
context cost
the whole folder, loaded on every use
3
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
1086
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/gooseworks-ai/goose-skills --skill linkedin-commenter-extractor

What comes with it

10 995 bytes besides the instruction
scripts/extract_commenters.py
skill.meta.json

The instruction itself

6 sections, as written by the author

LinkedIn Commenter Extractor

Extract names, titles, companies, LinkedIn URLs, and comment text from people who commented on specific LinkedIn posts. Uses Apify — no LinkedIn cookies required.

Quick Start

Requires requests and APIFY_API_TOKEN environment variable.

# Extract commenters from a single post
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \
  --post-url "https://www.linkedin.com/posts/someone_topic-activity-123456789"

# Multiple posts
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \
  --post-url URL1 --post-url URL2

# Limit comments per post
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \
  --post-url URL --max-comments 50

# Output formats
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py --post-url URL --output json
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py --post-url URL --output csv
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py --post-url URL --output summary

# Deduplicate across multiple posts
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \
  --post-url URL1 --post-url URL2 --dedup

How It Works

  • Takes one or more LinkedIn post URLs
  • Calls the harvestapi~linkedin-post-comments Apify actor (no cookies needed)
  • Extracts commenter name, headline (title + company), LinkedIn profile URL, and comment text
  • Parses headline into separate title and company fields where possible
  • Optionally deduplicates across multiple posts by LinkedIn profile URL

CLI Reference

| Flag | Default | Description |

|------|---------|-------------|

| --post-url | *required* | LinkedIn post URL (can be repeated for multiple posts) |

| --max-comments | 100 | Max comments to extract per post |

| --output | json | Output format: json, csv, summary |

| --dedup | false | Deduplicate commenters across multiple posts |

| --token | env var | Apify API token (overrides APIFY_API_TOKEN env var) |

| --timeout | 120 | Max seconds to wait for Apify run |

Output Schema

{
  "name": "Jane Smith",
  "headline": "VP of Finance at Acme Corp",
  "title": "VP of Finance",
  "company": "Acme Corp",
  "linkedin_url": "https://www.linkedin.com/in/janesmith",
  "comment_text": "Great insights on AI in accounting...",
  "post_url": "https://www.linkedin.com/posts/...",
  "profile_image_url": "https://..."
}

Cost

Uses harvestapi~linkedin-post-comments Apify actor — ~$2 per 1,000 comments. No LinkedIn cookies or login required.

How to use it

Copy the folder

Take gooseworks-ai/linkedin-commenter-extractor from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.