---
name: linkedin-profile-post-scraper-4797cc627486
description: >
  Scrape recent posts from LinkedIn profiles using Apify. Use when you need to
  monitor what specific people are posting on LinkedIn, track founder/exec activity,
  or gather LinkedIn content for competitive intelligence.
---

# 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`.

```bash
# 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

| Flag | Default | Description |
|------|---------|-------------|
| `--profiles` | *required* | LinkedIn profile URL(s), comma-separated |
| `--max-posts` | 20 | Max posts to scrape per profile |
| `--keywords` | none | Keywords to filter (comma-separated, OR logic) |
| `--days` | 30 | Only include posts from last N days |
| `--output` | json | Output format: `json` or `summary` |
| `--token` | env var | Apify token (prefer `APIFY_API_TOKEN` env var) |
| `--timeout` | 300 | Max 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`)


---
Source attribution: gooseworks-ai
Original project: https://github.com/gooseworks-ai/goose-skills/blob/1add09bd8e0d057e91e25c96b9282498e2fcb2a2/skills/shared/linkedin-profile-post-scraper/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 GooseWorks

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: gooseworks-ai
Original project: https://github.com/gooseworks-ai/goose-skills/blob/1add09bd8e0d057e91e25c96b9282498e2fcb2a2/skills/shared/linkedin-profile-post-scraper/SKILL.md
Attribution basis: Source repository record

Fields of work: Marketing
Roles: Marketing Analyst, Growth Marketer, Content Marketer, Social Media Manager, Influencer Marketer
Specialties: Specialty not specified
Tools: Apify
Country applicability: Country not specified
Classification basis: Source category, role and specialization labels
Instruction SHA-256: ece23b70127f6f310d05e38e403af58b5bbada9269bacd4eb32d3652f1b67f24
