Coder Social home page Coder Social logo

flurryunicorn / linkedinscraping-using-zenrow Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 16 KB

Scraping linkedin company profile using puppeteer and zenrow

JavaScript 99.89% Batchfile 0.11%
javascript linkedin-scraper puppeteer axios cheerio googlesheetapi linkedin parallel zenrows

linkedinscraping-using-zenrow's Introduction

LinkedIn Company Profile Scraper

Introduction

This project is aimed to scrape public company profile data from LinkedIn and store them into Google Sheets. The project utilizes ZenRows API for web scraping in order to bypass LinkedIn's CAPTCHA tools and avoid IP blocking problems caused by sending too many requests in a short period of time. Axios and cheerio are used for API interaction. 8 requests are sent in parallel each time and the results are saved into a Google Sheet.

Pre-requisites

You need to fill up the environment variables in the .env. Here is an example file:

.env.example:

GCLOUD_PROJECT=
GOOGLE_APPLICATION_CREDENTIALS=./service_account_credentials.json
SPREADSHEETID=
SHEETNAME=
PARALLEL=8
APIKEY=

Ensure you have node.js installed, and the suitable authentication and access permissions for Zenrows and Google Sheets API.

Steps to run the project:

Installation

  1. Clone the repository from here.
  2. Run npm install to install all the necessary dependencies.
  3. Create a .env file based on the example .env.example and fill it with your real credentials.
  4. Run the scraping command using node index.js.

Make sure your Googlesheet is shared with the client email.

Data Storage

The scraped data is stored in a Google Sheet using Google Sheets API (googleapis). This makes it easy to view, share, and work with the scraped data. The spreadsheet ID and sheet name are specified in the .env file.

Built With

  • Node.js
  • Axios - Used to make HTTP requests
  • Cheerio - Used for web scraping
  • ZenRows API - Used to bypass CAPTCHA and IP blocking
  • Google Sheets API (googleapis) - Used to store the scraped data

Feel free to fork or clone this repository for your own purposes. Contributions are also welcomed!

linkedinscraping-using-zenrow's People

Contributors

blizzardeternity avatar flurryunicorn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.