https://github.com/peak050423/linkedin-scraper
A Python script for scraping LinkedIn data using Apify. This script can scrape company followers and post likers, and save the data in CSV format.
https://github.com/peak050423/linkedin-scraper
Last synced: 3 months ago
JSON representation
A Python script for scraping LinkedIn data using Apify. This script can scrape company followers and post likers, and save the data in CSV format.
- Host: GitHub
- URL: https://github.com/peak050423/linkedin-scraper
- Owner: peak050423
- Created: 2025-02-12T18:53:21.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-12T19:58:36.000Z (4 months ago)
- Last Synced: 2025-02-12T20:29:37.375Z (4 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🚀 LinkedIn Scraper
## 📌 Overview
LinkedIn Scraper is a web-based tool that allows users to extract data from LinkedIn:
1. **Company Followers Scraper** – Extract followers of a LinkedIn company page.
2. **Post Likers Scraper** – Get a list of users who liked a specific LinkedIn post.This tool enables users to scrape LinkedIn data with a simple UI and download the results as a CSV file.
Built with:- **Frontend:** HTML, CSS, JavaScript (No jQuery, pure JS)
- **Backend:** Flask (Python)
- **Data Output:** CSV file download---
## 🔧 Features
✅ **Scrape Company Followers**
✅ **Scrape Post Likers**
✅ **Validate LinkedIn URLs** (Company & Post)
✅ **Download CSV Files Directly**---
## ⚠️ **Using LinkedIn's Hidden APIs**
This scraper uses **LinkedIn's private (undocumented) APIs** to fetch follower and post-like data.
Since these APIs are not officially supported by LinkedIn:- **They may stop working at any time** if LinkedIn changes its internal API structure.
- **Scraping LinkedIn data may violate LinkedIn's Terms of Service** – Use responsibly.
- **You may need to update cookies/session headers periodically** to maintain access.---
## 🛠️ Installation & Setup
### **🔹 1️⃣ Install Dependencies**
> **Backend (Flask & Python)**
```bash
pip install -r requirements.txt
```### **🔹 2️⃣ Run the Backend**
> **Start the Flask server:**
```bash
python main.py
```## 🚀 How to Use
### **🔹 1️⃣ Open index.html in a browser**
- Simply open the index.html file in your browser.
### **🔹 2️⃣ Select Scraper Type**
- **Company Followers Scraper** - Scrapes followers from a LinkedIn company page.
- **Post Likers Scraper** - Scrapes users who liked a specific LinkedIn post.### 🔹 3️⃣ Enter the LinkedIn URL\*\*
- **Company URL Format:**
```bash
https://www.linkedin.com/company/12345678/admin/dashboard/
```- **POST URL Format:**
```bash
https://www.linkedin.com/feed/update/urn:li:activity:1234567890/
```### **🔹 4️⃣ Click Start Scraping**
- The scraper starts, and a loading animation appears on the button.
- Once completed, the CSV file automatically downloads.### **🔹 5️⃣ Open Your CSV File**
- The scraped data is saved in a CSV file, ready for analysis
Website Url: https://linkedin-scraper-qcwi.onrender.com/