← ClaudeAtlas

linkedin-profile-scraperlisted

Scrape LinkedIn profile post data using the Apify LinkedIn Profile Post Scraper and export it as a structured CSV. Use this skill when the user wants to pull LinkedIn post metrics, analyze LinkedIn content performance, scrape a LinkedIn profile's posts, or export LinkedIn engagement data. Also trigger when the user mentions Apify and LinkedIn together, or asks about post-level LinkedIn analytics.
rdoser13/free-claude-skills · ★ 0 · Data & Documents · score 73
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