Skip to content

Linkedin Company Pages Scraper in Python. In the script, we are using Crawlbase builtin "linkedin-company" scraper through Crawlbase Crawling API.

Notifications You must be signed in to change notification settings

ScraperHub/linkedin-company-pages-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

crawling-api-cta

🏢 LinkedIn Company Pages Scraper with Crawlbase

📝 Description

This repository provides a Python-based solution to scrape detailed public company information from LinkedIn using the Crawlbase Crawling API.

It includes:

  • A scraper that sends asynchronous requests to LinkedIn company page URLs.
  • A retrieval script that fetches the structured company 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 handling structured output
  • Python 3.6+

📦 Installation

Install the required package:

pip install crawlbase

🚀 Scraper: LinkedIn Company Page Scraper

File: linkedin_company_scraper.py

✅ What It Does

  • Sends an asynchronous scraping request to a LinkedIn company page.
  • Returns a rid (request ID) to be used for retrieving the full response.

⚙️ How to Run

  1. Replace YOUR_API_TOKEN with your Crawlbase token.
  2. Set the LinkedIn company page URL.
python linkedin_company_scraper.py

🧪 Sample Output

{
	"rid": "f270321bbebe203b43cebedd"
}

📄 Retrieval: Get Company Data

File: linkedin_company_retrieve.py

✅ What It Does

  • Retrieves and prints the stored company page data using the rid.

⚙️ How to Run

  1. Replace YOUR_API_TOKEN and RID in the script.
python linkedin_company_retrieve.py

🧪 Sample Output

{
  {
  "title": "Amazon",
  "headline": "Software Development",
  "cover_image": "https://media.licdn.com/dms/...",
  "company_image": "https://media.licdn.com/dms/...",
  "url": "https://www.linkedin.com/company/amazon",
  ...
}

📌 To-Do

  • Support for scraping multiple company pages
  • Export company data to CSV/JSON
  • Add CLI options for input/output
  • Implement retry and error-handling logic

💡 Why Scrape LinkedIn Company Pages?

  • Research competitors and market trends
  • Monitor public-facing company updates
  • Build datasets for lead generation and analytics

About

Linkedin Company Pages Scraper in Python. In the script, we are using Crawlbase builtin "linkedin-company" scraper through Crawlbase Crawling API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages