Skip to content
Back to skills

Linkedin Commenter Extractor

ASecurity

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.

  • 1,232 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 4, 2026
ai-agentspythonbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add gooseworks-ai/goose-skills --skill linkedin-commenter-extractor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Linkedin Commenter Extractor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Linkedin Commenter Extractor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gooseworks-ai-linkedin-commenter-extractor-goose-skills/badge)](https://www.skillsdirectory.com/skills/gooseworks-ai-linkedin-commenter-extractor-goose-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: linkedin-commenter-extractor
description: >
  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.
---

# 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.

```bash
# 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

1. Takes one or more LinkedIn post URLs
2. Calls the `harvestapi~linkedin-post-comments` Apify actor (no cookies needed)
3. Extracts commenter name, headline (title + company), LinkedIn profile URL, and comment text
4. Parses headline into separate title and company fields where possible
5. 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

```json
{
  "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.

Files in this skill

  • SKILL.md2.8 KB
  • scripts/extract_commenters.py10.5 KB
  • skill.meta.json279 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.