Linkedin reaction scraper

From gethouston/houston · View interactive version

Linkedin reaction scraper is an AI agent skill from the GitHub repository gethouston/houston. Scrape every reactor on a LinkedIn post via Apify with profileScraperMode=main, so each row comes back with a full LinkedIn profile attached: experience history, education, skills, certifications, location, connections count. 5-10x more leads than the comment scrape and far richer data per lead. Pha

How to use this skill

Skill file

LinkedIn Reaction Scraper

Pull every reactor from a LinkedIn post into a clean, deduped list - with a full LinkedIn profile attached to each row in one shot. Phase 1 of the reaction-to-outreach pipeline; also runnable standalone if you only need the list.

The big win over the commenter scrape: profileScraperMode: "main" makes the actor return the reactor's experience history, education, skills, certifications, location, and connections count directly. No second-pass enrichment for profile data needed (Apollo enrichment is still required for verified emails).

When to use

When NOT to use

Connections I need

If Apify isn't connected I stop and ask you to connect it from the Integrations tab.

Information I need

Steps

<!-- houston-workflow:v1 -->

  1. Validate URL. Same rules as the comment scraper: must be a LinkedIn post URL. Reject profile / article / company URLs. Resolve short links once.
  1. Test pull. First call to the actor with maxItems: 20 and profileScraperMode: "main". Confirm shape includes experience, education, skills, connectionsCount. If those are missing, the actor wasn't given the right mode flag - fail loudly so you can see it.
  1. Full pull. Call the actor with maxItems: {target} (default 500), profileScraperMode: "main". The reaction scrape with full profiles takes longer than the comment scrape - expect 5-15 minutes for 500 items.
  1. Dedupe. Group by profileUrl. Drop rows with null profileUrl or null fullName (scrape misses).
  1. Save to file. Write to runs/{runId}/scrape.json if called from the orchestrator; otherwise runs/{YYYY-MM-DD}-{post-slug}-reactions/scrape.json. Schema per row:

```jsonc

{

"profileUrl": "https://www.linkedin.com/in/janedoe",

"fullName": "Jane Doe",

"headline": "VP Operations at Northwind",

"location": "San Francisco, CA",

"connectionsCount": 2840,

"reactionType": "LIKE | CELEBRATE | LOVE | INSIGHTFUL | FUNNY | SUPPORT",

"experience": [

{ "company": "Northwind", "role": "VP Operations", "startDate": "2024-03", "endDate": null },

{ "company": "Helios", "role": "Director of Ops", "startDate": "2021-01", "endDate": "2024-02" }

],

"education": [

{ "school": "Stanford", "degree": "MBA", "endDate": "2020-06" }

],

"skills": ["Operations", "Process Design", "RevOps", "Salesforce"],

"certifications": [],

"scrapedAt": "<ISO>"

}

```

  1. Update leads.json. Append new profileUrls with source: "linkedin-reaction", sourcePostUrl, sourceAuthor, scrapedAt. Existing rows stay (don't overwrite enrichment from prior runs).
  1. Append to outputs.json. One row: {type: "scrape", title: "LinkedIn reactors - {author} post", summary: "{N} unique reactors scraped with full profiles.", path: "runs/{runId}/scrape.json", status: "ready", domain: "sources"}.
  1. Summarize to user. One line: "Scraped {N} unique reactors from {author}'s post (with full profiles). Saved to your runs folder."

Outputs

Common failure modes

| Failure | Why | Fix |

|---|---|---|

| Only 20 results returned on the full pull | I forgot to bump maxItems past the test value | Re-run with maxItems: 500 |

| experience, education, skills all empty | profileScraperMode: "main" was not set | Re-run with the flag set; without it the actor returns surface fields only |

| Run takes >30 minutes | Reactor count is 1000+ on this post | Either accept the wait or split by reaction type into multiple runs |

| All profileUrl null | LinkedIn served the actor a logged-out view | Wait 5-10 minutes and retry |

What I never do

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.