Linkedin commenter extractor

Extract commenters from LinkedIn posts via Apify.

How to use it

  1. Hit Copy the whole skill.
  2. 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.
  3. 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-extractor

For 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.
Step-by-step guide with screenshots · Ask in the forum

Paste into Claude, ChatGPT or Cursor.

Show the full text77 lines
linkedin-commenter-extractor/SKILL.md77 lines2.8 KBpushed 96d agoRawView on GitHub

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

  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

{
  "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---
2name: linkedin-commenter-extractor
3description: >
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 
11Extract 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 
15Requires `requests` and `APIFY_API_TOKEN` environment variable.
16 
17```bash
18# Extract commenters from a single post
19python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \
20 --post-url "https://www.linkedin.com/posts/someone_topic-activity-123456789"
21 
22# Multiple posts
23python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \
24 --post-url URL1 --post-url URL2
25 
26# Limit comments per post
27python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \
28 --post-url URL --max-comments 50
29 
30# Output formats
31python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py --post-url URL --output json
32python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py --post-url URL --output csv
33python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py --post-url URL --output summary
34 
35# Deduplicate across multiple posts
36python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \
37 --post-url URL1 --post-url URL2 --dedup
38```
39 
40## How It Works
41 
421. Takes one or more LinkedIn post URLs
432. Calls the `harvestapi~linkedin-post-comments` Apify actor (no cookies needed)
443. Extracts commenter name, headline (title + company), LinkedIn profile URL, and comment text
454. Parses headline into separate title and company fields where possible
465. 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```json
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 
76Uses `harvestapi~linkedin-post-comments` Apify actor — ~$2 per 1,000 comments. No LinkedIn cookies or login required.
77 

Discussion

Alternatives

Also in Company & contact data