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.
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
.
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