Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Linkedin Profile Scraper in Python. In the script, we are using Crawlbase "linkedin-profile" scraper.

NotificationsYou must be signed in to change notification settings

ScraperHub/linkedin-profile-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

crawling-api-cta

🔗 LinkedIn Profile Scraper with Crawlbase

📝 Description

This repository provides a Python-based solution to scrape detailed public LinkedIn profile data using theCrawlbase Crawling API.

It includes:

- A scraper that sends asynchronous requests to extract profile data.- A retrieval script that fetches the final structured data using the request ID (RID).

📖 Read the full tutorial:How to Scrape LinkedIn

🔧 Tools Used

  • crawlbase – for accessing Crawling and Storage APIs
  • json – for working with JSON responses
  • Python 3.6+

📦 Installation

Install the required package:

pip install crawlbase

🚀 Scraper: LinkedIn Profile Scraper

File: linkedin_profile_scraper.py

✅ What It Does

  • Sends an asynchronous scraping request to a public LinkedIn profile URL.
  • Returns a rid (request ID) used to retrieve the data later.

⚙️ How to Run

  1. Replace YOUR_API_TOKEN with your Crawlbase token.
  2. Set the LinkedIn profile URL.
python linkedin_profile_scraper.py

🧪 Sample Output

{"rid":"1dd4453c6f6bd93baf1d7e03"}

📄 Retrieval: Get Scraped Data

File: linkedin_profile_retrieve.py

✅ What It Does

Uses the rid from the scraper to fetch and print the structured LinkedIn profile data.

⚙️ How to Run

ReplaceYOUR_API_TOKEN and RID in the script.

python linkedin_profile_retrieve.py

🧪 Sample Output

{"title":"Kaitlyn Owen","headline":"","sublines": ["Miami-Fort Lauderdale Area","5K followers","500+ connections"],"location":"Miami-Fort Lauderdale Area",...}

📌 To-Do

  • Add batching for scraping multiple profile URLs
  • Save scraped data to CSV or JSON
  • Add command-line interface (CLI) support
  • Retry mechanism for failed requests

💡 Why Scrape LinkedIn?

  • Track hiring trends and talent movement
  • Gather public profile data for market research
  • Build datasets for recruitment or networking tools

About

Linkedin Profile Scraper in Python. In the script, we are using Crawlbase "linkedin-profile" scraper.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp