linkedin-profile-scraperlisted
Install: claude install-skill rdoser13/free-claude-skills
# LinkedIn Profile Post Scraper
Scrape a LinkedIn profile's posts via the Apify LinkedIn Profile Post Scraper actor and export the results as a clean, analysis-ready CSV.
## Prerequisites
- An Apify API token. The user must provide this or have it set as an environment variable (`APIFY_API_TOKEN`). If neither exists, ask for it before proceeding. The free Apify tier works for small runs.
- The target LinkedIn profile URL (e.g., `https://www.linkedin.com/in/username/`)
## Step 1: Validate inputs
1. Confirm the Apify API token is available — check `$APIFY_API_TOKEN` env var first, then ask the user.
2. Confirm a valid LinkedIn profile URL was provided as the argument (`$ARGUMENTS`). It should match the pattern `https://www.linkedin.com/in/...`.
3. Ask how many posts to scrape if not specified. Default to 50.
## Step 2: Run the Apify actor
Use the Apify REST API to trigger the LinkedIn Profile Post Scraper actor (`curious_coder/linkedin-profile-post-scraper`).
```bash
curl -X POST "https://api.apify.com/v2/acts/curious_coder~linkedin-profile-post-scraper/runs?token=$APIFY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"profileUrls": ["<LINKEDIN_PROFILE_URL>"],
"maxPosts": <NUMBER_OF_POSTS>
}'
```
Wait for the run to complete by polling the run status endpoint. Then fetch the dataset items from the default dataset.
## Step 3: Transform into CSV
Parse the raw JSON output and map it to these columns:
| Column | Source | Notes |
|---|---|---|
| Da