Goose-skills linkedin-commenter-extractor
install
source · Clone the upstream repo
git clone https://github.com/gooseworks-ai/goose-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/gooseworks-ai/goose-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/capabilities/linkedin-commenter-extractor" ~/.claude/skills/gooseworks-ai-goose-skills-linkedin-commenter-extractor && rm -rf "$T"
manifest:
skills/capabilities/linkedin-commenter-extractor/SKILL.mdsource content
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
Apify actor (no cookies needed)harvestapi~linkedin-post-comments - 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 |
|---|---|---|
| required | LinkedIn post URL (can be repeated for multiple posts) |
| 100 | Max comments to extract per post |
| json | Output format: , , |
| false | Deduplicate commenters across multiple posts |
| env var | Apify API token (overrides APIFY_API_TOKEN env var) |
| 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.