LinkedIn Contacts Automation with Selenium - Step by Step Bot

Опубликовано: 16 Октябрь 2024
на канале: Python Simplified
29,255
1k

🛑 IMPORTANT NOTE! 🛑
Please use a DUMMY ACCOUNT when adding so many contacts!!!
DO NOT use your personal account to avoid being flagged by LinkedIn!!!

In this tutorial we will build a connecting bot with Python & Selenium! We will send connection invitations to as many LinkedIn members as we choose with nearly 0 effort on our end and a 100% automation!
By the end of this tutorial, you will have your own connecting bot and if you choose to combine it with my commenting bot from part 1 & part 2 of this project - you'll have an even more powerful growth marketing tool!

Create LinkedIn Message Bot - Part 1:
   • Linkedin Message Automation with Sele...  

Improve LinkedIn Message Bot - Part 2:
   • LinkedIn Custom Message Automation wi...  

This project is ⭐ PERFECT FOR BEGINNERS! ⭐
But before we move on - please make sure you:

************************************
🛑🐍 INSTALL PYTHON 🐍🛑
   • Install Python with Anaconda - OLD VE...  
**************************************************
🛑🤖 INSTALL SELENIUM & WEBDRIVER 🤖🛑
   • Web Scraping Instagram with Selenium  
************************************

Once you have Python, Webdriver and Selenium installed -
You can proceed with the tutorial without much background
in Python, as most of the commands are in plain English! 😉
Just create a new file with any code editing software and paste the starter code to it!

************************************
⭐ STARTER CODE ⭐
************************************

from selenium import webdriver
import time

driver = webdriver.Chrome('C:/Users/Mariya/chromedriver.exe')
driver.get('https://www.linkedin.com')
time.sleep(2)

#********** LOG IN *************

username = driver.find_element_by_xpath("//input[@name='session_key']")
password = driver.find_element_by_xpath("//input[@name='session_password']")

username.send_keys('my_username')
password.send_keys('my_password')
time.sleep(2)

submit = driver.find_element_by_xpath("//button[@type='submit']").click()

#***************** ADD CONTACTS ***********************

************************************
⭐ TIMESTAMPS ⭐
************************************
00:00 - Intro
00:30 - starter code walk-trough
02:21 - run starter code
02:55 - find and inspect web page
04:44 - select and click on connect buttons
07:04 - send invitation to connect
09:04 - bypass users with strict privacy settings
09:26 - dismiss email input div
11:03 - run connecting bot
************************************
⭐ Github Project Repository ⭐
https://github.com/MariyaSha/WebScrap...

#python #pythonprogramming #pythonforbeginners #selenium #seleniumbot #bot #linkedin #linkedinbot #linkedinautomation #seleniumautomation #webscraping #webscrapinglinkedin