How to Scrape LinkedIn Post Activity of Leads — Step by Step

📌 Goal:

You have a lead’s LinkedIn URL and want to automatically retrieve:

  • Their most recent posts

  • What they’ve liked or commented on

  • Topics and hashtags they interact with

…and use that data to enrich your CRM or personalize outreach.

⚙️ What You Need:

  • ✅ A LinkedIn profile URL

  • ✅ An Apify account

  • ✅ An actor that scrapes activity (not just profile)

  • ✅ A Make.com or Zapier account (optional, for automation)

  • ⚠️ Your own LinkedIn session cookie to use with Apify

🧪 Step 1: Get the LinkedIn Profile Activity Scraper

  1. Log into Apify

  2. Go to: Apify Store

  3. Search for:

    • linkedin-profile-scraper → Gets headline, role, company info

    • OR use a custom actor for activity like:
      👉 linkedin-user-activity (limited use, or you can fork/customize)

  4. Click “Try Actor” to test it manually

⚠️ Step 2: Add Your LinkedIn Session Cookie

LinkedIn requires you to be logged in to view someone’s activity.
You’ll need to:

  1. Log into LinkedIn (desktop)

  2. Open Developer Tools > Application > Cookies

  3. Copy your li_at cookie value

  4. In Apify actor settings, paste the cookie under “LinkedIn session” field

🔐 This is safe as long as the session is yours and not reused/shared.

🟢 Step 3: Run the Actor on a LinkedIn URL

  1. Paste your target’s profile link into the input (e.g. https://linkedin.com/in/john-smith)

  2. Run the actor

✅ The output will contain:

  • Recent public posts

  • Posts liked or commented

  • Time/date

  • Content snippets

  • Links to post

  • Topics (hashtags, mentions)

🔄 Step 4 (Optional): Automate with Make.com

If you want to automate this:

  1. In Make.com, create a new scenario

  2. Trigger: “New Lead Added” or “LinkedIn URL Updated” in CRM

  3. Use an HTTP module to call Apify API:

    • POST to:
      https://api.apify.com/v2/actor-tasks/[TASK_ID]/run-sync?token=YOUR_TOKEN

    • Include LinkedIn URL in request body

  4. Parse the returned activity data

  5. Store it into your CRM:

    • In a “Notes” field

    • As tags (e.g. “likes: #automation, #ai”)

    • In a custom “Recent Activity” field

🧠 Step 5: Use the Data

Here’s how you can act on it:

  • Auto-tag leads by interests (e.g. #crm, #ai, #growth)

  • Personalize outreach:
    “I saw you engaged with a post about automating onboarding — we just solved that for a client.”

  • Trigger alerts to your sales team when a lead posts about a topic you solve

🔐 Important Notes

  • You’re scraping public activity only — anything you could manually see while logged in

  • You can run this for multiple leads in a batch (set of URLs)

  • This works best for active profiles (founders, execs, marketers, consultants)

🧩 Want a Template or Actor Clone?

I can:

  • Help you clone or customize an Apify actor that fits this

  • Create a ready-to-use Make.com automation flow

  • Build a JSON formatter that simplifies what to save into CRM

Just tell me:

  • Your CRM (e.g. HubSpot, Pipedrive, Zoho)

  • What field(s) you'd like to enrich

  • How many profiles per day you expect to run

And I’ll build the exact workflow for you.

Previous
Previous

CRM as the Orchestration Hub: Building AI-Powered Business Ecosystems

Next
Next

Why Businesses Struggle to Keep It All Together — and What to Automate First