Skip to content

Files

Latest commit

aef4cb6 · Jun 21, 2021

History

History
This branch is 7 commits behind HarshCasper/Rotten-Scripts:master.

LinkedIn_Posts_Scrapper

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 29, 2021
Jun 21, 2021

ReadMe.md

LinkedIn Posts Scrapper

It is an automated script to scrap LinkedIn Posts, and number of Reactions and Comments from the /detail/recent-activity/shares/ endpoint.

Installation

  • Make sure you have the following Python libraries:

pip3 install selenium pandas

  • Place CromeDriver.exe in the same directory of the script. You can download it from here
    (Note: Download the one with the same version of your Chrome browser.)

Usage

python scrapper.py -e <email> -p <password> -n <number-of-posts-to-scrap>

Output

The script should output a Scrap.csv file containing the scrapped posts whose columns are in the following order: Heading, Reactions, Comments

Note: If post has a 0 reaction or comment, the output will be substituted with None

Authors

Written by XZANATOL.