How to use it
- Hit Copy the whole skill.
- Claude: ⋯ → Download .md, then Customize → Skills → Add → Upload skill.
ChatGPT: make a Project and paste it into Instructions.
Neither? Paste it at the top of a new chat — it works for that chat. - Describe your job in plain words. The AI follows the skill from there.
Claude Code — installs the whole folder, not just SKILL.md
npx degit gooseworks-ai/goose-skills/skills/lead-generation/capabilities/linkedin-commenter-extractor#main ~/.claude/skills/linkedin-commenter-extractorFor one project only, change the path to .claude/skills/linkedin-commenter-extractor.
Not working?
- Check which app you pasted it into — the steps above name the right one.
- Some skills need the paid tier of Claude or ChatGPT.
Paste into Claude, ChatGPT or Cursor.
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 |
Discussion
Alternatives
Also in Company & contact dataApollo lead finderTwo-phase Apollo.io prospecting: free People Search to discover ICP-matching leads, then selective enrichment to reveal emails/phones (credits per contact). Creates Apollo lists. Deduplicates against existing contacts by LinkedIn URL.Company contact finderFind decision-makers at a specific company using Apollo, Crustdata, Fiber, and PDL people search via Gooseworks MCP. Given a company name and target titles, returns a list of contacts with name, title, LinkedIn URL, and location.Company funding searchFind company funding history, investors, and investment detailsCompany Intelligence - Comprehensive Company ReportsFull company intelligence report - overview, team, funding, products, news