mcpField
L
linkedin-profile-post-scraper

linkedin-profile-post-scraper

github.com/gooseworks-aiMarketing & growth1.3k71 installsUpdated 3d ago
Repository

About linkedin-profile-post-scraper

A command-line skill that scrapes recent posts from specified LinkedIn profiles using the Apify `harvestapi/linkedin-profile-posts` actor. It supports keyword and date-window filtering, with JSON or summary output.

Key features

  1. 01Scrape posts from specified LinkedIn profiles
  2. 02Filter by keywords with OR logic
  3. 03Limit results to a recent date window
  4. 04Output JSON or a summary
  5. 05Print an estimated scraping cost

Use cases

  1. 01Collect recent posts from one or more profiles
  2. 02Find posts matching selected keywords
  3. 03Review recent profile activity in summary form

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/gooseworks-ai/goose-skills --skill linkedin-profile-post-scraper

After installing, type/linkedin-profile-post-scraperin Claude Code to confirm it loaded.

Bundled filesscripts/scrape_linkedin_posts.pyskill.meta.json

Details

From the project README

LinkedIn Profile Post Scraper

Scrape recent posts from specific LinkedIn profiles using the Apify harvestapi/linkedin-profile-posts actor.

Quick Start

Requires APIFY_API_TOKEN env var (or --token flag). Install dependency: pip install requests.

# Scrape recent posts from a profile
python3 skills/linkedin-profile-post-scraper/scripts/scrape_linkedin_posts.py \
  --profiles "https://www.linkedin.com/in/example-person" --max-posts 10

# Multiple profiles with keyword filtering
python3 skills/linkedin-profile-post-scraper/scripts/scrape_linkedin_posts.py \
  --profiles "https://www.linkedin.com/in/person1,https://www.linkedin.com/in/person2" \
  --keywords "AI,growth" --days 30

# Summary table
python3 skills/linkedin-profile-post-scraper/scripts/scrape_linkedin_posts.py \
  --profiles "https://www.linkedin.com/in/example-person" --output summary

CLI Reference

FlagDefaultDescription
--profilesrequiredLinkedIn profile URL(s), comma-separated
--max-posts20Max posts to scrape per profile
--keywordsnoneKeywords to filter (comma-separated, OR logic)
--days30Only include posts from last N days
--outputjsonOutput format: json or summary
--tokenenv varApify token (prefer APIFY_API_TOKEN env var)
--timeout300Max seconds to wait for the Apify run

Cost

~$2 per 1,000 posts scraped. The script prints a cost estimate before running.

Notes

  • No native date filtering — dates are filtered client-side on postedAt/postedDate
  • Profile URLs must be full LinkedIn URLs (e.g. https://www.linkedin.com/in/username)

Comments

Markdown supported