Extract commenters from LinkedIn posts via Apify
Linkedin commenter extractor

Extract commenters from LinkedIn posts via Apify. Returns commenter names, titles, LinkedIn profile URLs, and comment text.
--- 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
Overview
Extract names, titles, companies, LinkedIn URLs, and comment text from people who commented on specific LinkedIn posts. Uses Apify — no LinkedIn cookies required.
Manual install (npx, ZIP)
npx skills add gooseworks-ai/goose-skills --skill linkedin-commenter-extractor -g -a claude-codemkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/gooseworks-ai/goose-skills/tar.gz/615c685f34f8 \
| tar -xz -C ~/.claude/skills --strip-components=4 goose-skills-615c685f34f8/skills/lead-generation/capabilities/linkedin-commenter-extractorNew-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/e3d1e47e8b1f33083000/linkedin-commenter-extractor.zip" -OutFile "$env:TEMP\linkedin-commenter-extractor.zip"; Expand-Archive "$env:TEMP\linkedin-commenter-extractor.zip" -DestinationPath "$HOME\.claude\skills" -ForceConnects with Agent Alley MCP · agentalley.io/mcp
Files included
SKILL.md2.8 KBskill.meta.json279 Bscripts/1 file · 10.5 KB
Read the files here
Show the full text77 lines
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-commentsApify 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.
| 1 | |
| 2 | name linkedin-commenter-extractor |
| 3 | description > |
| 4 | Extract commenters from LinkedIn posts via Apify. Returns commenter names, titles, |
| 5 | LinkedIn profile URLs, and comment text. Use to find warm leads engaging with |
| 6 | relevant discussions. No LinkedIn cookies required. |
| 7 | |
| 8 | |
| 9 | # LinkedIn Commenter Extractor |
| 10 | |
| 11 | Extract names, titles, companies, LinkedIn URLs, and comment text from people who commented on specific LinkedIn posts. Uses Apify — no LinkedIn cookies required. |
| 12 | |
| 13 | ## Quick Start |
| 14 | |
| 15 | Requires `requests` and `APIFY_API_TOKEN` environment variable. |
| 16 | |
| 17 | |
| 18 | # Extract commenters from a single post |
| 19 | python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \ |
| 20 | --post-url "https://www.linkedin.com/posts/someone_topic-activity-123456789" |
| 21 | |
| 22 | # Multiple posts |
| 23 | python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \ |
| 24 | --post-url URL1 --post-url URL2 |
| 25 | |
| 26 | # Limit comments per post |
| 27 | python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \ |
| 28 | --post-url URL --max-comments 50 |
| 29 | |
| 30 | # Output formats |
| 31 | python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py --post-url URL --output json |
| 32 | python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py --post-url URL --output csv |
| 33 | python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py --post-url URL --output summary |
| 34 | |
| 35 | # Deduplicate across multiple posts |
| 36 | python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \ |
| 37 | --post-url URL1 --post-url URL2 --dedup |
| 38 | |
| 39 | |
| 40 | ## How It Works |
| 41 | |
| 42 | Takes one or more LinkedIn post URLs |
| 43 | Calls the `harvestapi~linkedin-post-comments` Apify actor (no cookies needed) |
| 44 | Extracts commenter name, headline (title + company), LinkedIn profile URL, and comment text |
| 45 | Parses headline into separate title and company fields where possible |
| 46 | Optionally deduplicates across multiple posts by LinkedIn profile URL |
| 47 | |
| 48 | ## CLI Reference |
| 49 | |
| 50 | | Flag | Default | Description | |
| 51 | |------|---------|-------------| |
| 52 | | `--post-url` | *required* | LinkedIn post URL (can be repeated for multiple posts) | |
| 53 | | `--max-comments` | 100 | Max comments to extract per post | |
| 54 | | `--output` | json | Output format: `json`, `csv`, `summary` | |
| 55 | | `--dedup` | false | Deduplicate commenters across multiple posts | |
| 56 | | `--token` | env var | Apify API token (overrides APIFY_API_TOKEN env var) | |
| 57 | | `--timeout` | 120 | Max seconds to wait for Apify run | |
| 58 | |
| 59 | ## Output Schema |
| 60 | |
| 61 | |
| 62 | { |
| 63 | "name": "Jane Smith", |
| 64 | "headline": "VP of Finance at Acme Corp", |
| 65 | "title": "VP of Finance", |
| 66 | "company": "Acme Corp", |
| 67 | "linkedin_url": "https://www.linkedin.com/in/janesmith", |
| 68 | "comment_text": "Great insights on AI in accounting...", |
| 69 | "post_url": "https://www.linkedin.com/posts/...", |
| 70 | "profile_image_url": "https://..." |
| 71 | } |
| 72 | |
| 73 | |
| 74 | ## Cost |
| 75 | |
| 76 | Uses `harvestapi~linkedin-post-comments` Apify actor — ~$2 per 1,000 comments. No LinkedIn cookies or login required. |
| 77 |
Details
- Updated
- Sep 21, 2026
- License
- MIT
- Stars on the repo
- ★ 1,220
- Checked
- Source
- gooseworks-ai/goose-skills ↗
- Creator
- gooseworks-ai · 206 listings
Made with linkedin-commenter-extractor

Similar skills
See all →
SkillAct as the company research engine for /sales research <urlCompany Research & Firmographic Analysis
SkillEthical people-finding and identity verificationPrivateinvestigator
SkillFree People Search to discover ICP-matching leadsApollo lead finder
SkillFind decision-makers at a specific company using ApolloCompany contact finder
SkillFind company funding history, investorsCompany funding search
SkillFull company intelligence reportCompany Intelligence - Comprehensive Company ReportsMore from gooseworks-ai
SkillMine the highest-converting ad angles from customer reviewsAd angle miner
SkillAnalyze ad campaign performance data to identify what'sAd campaign analyzer
SkillFor paid lead-gen and participant-recruitment adsAd lead quality analyzer
SkillAnalyze the message match between your ads and landing pagesAd to landing page auditor
SkillCheck and improve your brand's visibility across AI searchAeo
SkillSearch Amazon products - find items, compare pricesAmazon Product Search