Skip to content

Using linkedin api and selenium to automate the interaction with users on linkedin and then analyzing responses through NLP

Notifications You must be signed in to change notification settings

manuelrech/LinkedIn-Automation-and-NLP-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This project automates the process of sending connection invites and notes, fetching 1st level connections, sending messages to new connections and sending inmails to those who do not accept the invitation. The automation is done using selenium and linkedin-api. The responses data is then analyzed with NLP using pre-trained RoBERTa in the transformers library of Huggingface to understand which messages were more effective.

Getting started

The project requires a database of people to target, which can be imported from external csvs or scraped using linkedin api (in next version). The current version requires csv files with people's linkedin_urls and names, which are mandatory columns. The LinkedIn url is used to interact using the API, and the name is used to send a personalized message.

Project Structure The project is divided into 3 parts:

  • Sending connection invite + note api
  • Fetching 1st level connections selenium
  • Sending messages to new connections api
  • Sending inmails to those who do not accept the invitation selenium

The automation process is done using the calls in main.py. Each call is made using the utils_common.repeat_times() function, which repeats the process multiple times to handle connection_errors. The specific functions and arguments for each call are detailed in the comments of main.py.

Note

For privacy reasons i cannot disclose the leads datasets, but you can create an example one by picking ten of your friends profile_id and create a csv, the folders should create as magic

About

Using linkedin api and selenium to automate the interaction with users on linkedin and then analyzing responses through NLP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published