Ethically scrape public LinkedIn profiles for lead generation and research.
Prerequisites
Chrome browser installed
Logged into LinkedIn
List of profile URLs to scrape
Instructions
Open Chrome and verify you're logged into LinkedIn:
Navigate to linkedin.com
Confirm your profile icon appears in the top nav
If not logged in, stop and inform user
For each profile URL provided:
a. Navigate to the profile URL
b. Wait for the profile to fully load:
Profile photo area visible
Name and headline visible
Experience section loaded
c. Extract basic information:
Full name (h1 element)
Headline/title
Location
Profile photo URL
Connection count (if visible)
d. Scroll down to load more sections
e. Extract experience:
Current position and company
Previous positions (last 3)
Duration at each role
f. Extract education:
School names
Degrees and fields of study
Years attended
g. Extract skills (if visible):
Top skills listed
Endorsement counts
h. Add a 2-3 second delay before next profile (rate limiting)
Compile all extracted data into requested format:
JSON: structured object per profile
CSV: one row per profile with columns
Report summary:
Total profiles processed
Any profiles that failed
Output file location
Error Handling
If "Profile not found", skip and note in output
If rate limited, pause for 5 minutes then resume
If logged out, stop and inform user
Notes
Respects LinkedIn's terms of service
Uses delays to avoid rate limiting
Only extracts publicly visible information
For Sales Navigator data, use the linkedin-sales-nav skill
1---2name: linkedin-scraper3description: LinkedIn Profile Scraper4---5# LinkedIn Profile Scraper67Ethically scrape public LinkedIn profiles for lead generation and research.89## Prerequisites1011- Chrome browser installed12- Logged into LinkedIn13- List of profile URLs to scrape1415## Instructions16171. Open Chrome and verify you're logged into LinkedIn:18 - Navigate to `linkedin.com`19 - Confirm your profile icon appears in the top nav20 - If not logged in, stop and inform user21222. For each profile URL provided:2324 a. Navigate to the profile URL2526 b. Wait for the profile to fully load:27 - Profile photo area visible28 - Name and headline visible29 - Experience section loaded3031 c. Extract basic information:32 - Full name (h1 element)33 - Headline/title34 - Location35 - Profile photo URL36 - Connection count (if visible)3738 d. Scroll down to load more sections3940 e. Extract experience:41 - Current position and company42 - Previous positions (last 3)43 - Duration at each role4445 f. Extract education:46 - School names47 - Degrees and fields of study48 - Years attended4950 g. Extract skills (if visible):51 - Top skills listed52 - Endorsement counts5354 h. Add a 2-3 second delay before next profile (rate limiting)55563. Compile all extracted data into requested format:57 - JSON: structured object per profile58 - CSV: one row per profile with columns59604. Report summary:61 - Total profiles processed62 - Any profiles that failed63 - Output file location6465## Error Handling6667- If "Profile not found", skip and note in output68- If rate limited, pause for 5 minutes then resume69- If logged out, stop and inform user7071## Notes7273- Respects LinkedIn's terms of service74- Uses delays to avoid rate limiting75- Only extracts publicly visible information76- For Sales Navigator data, use the `linkedin-sales-nav` skill
Run npx skillmds@latest add mediar-ai/linkedin-scraper in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
LinkedIn Profile Scraper It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
mediar-ai (@mediar-ai) published this skill. Their other Agent Skills are listed on their SkillMD profile.