Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2022 11:44
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
from selenium import webdriver #connect python with webbrowser-chrome
from selenium.webdriver.common.keys import Keys
import pyautogui as pag
def main():
url = "" #url of LinkedIn
network_url = "" # url of LinkedIn network page
driver = webdriver.Chrome('F:\Argha\WebDriver\chromedriver.exe') # path to browser web driver
def login():
username = driver.find_element_by_id("login-email") # Getting the login element
username.send_keys("username") # Sending the keys for username
password = driver.find_element_by_id("login-password") # Getting the password element
password.send_keys("password") # Sending the keys for password
driver.find_element_by_id("login-submit").click() # Getting the tag for submit button
def goto_network():
def send_requests():
n= input("Number of requsts: ") # Number of requests you want to send
for i in range(0,n):,770) # position(in px) of connection button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment