Skip to content

Commit a5e1ab5

Browse files
committed
added auto linkedin
1 parent 08f346f commit a5e1ab5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Auto-Linkedin /AutoLinkedIn.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from selenium import webdriver #connect python with webbrowser-chrome
2+
from selenium.webdriver.common.keys import Keys
3+
import pyautogui as pag
4+
5+
def main():
6+
url = "http://linkedin.com/" #url of LinkedIn
7+
network_url = "http://linkedin.com/mynetwork/" # url of LinkedIn network page
8+
driver = webdriver.Chrome('F:\Argha\WebDriver\chromedriver.exe') # path to browser web driver
9+
driver.get(url)
10+
11+
12+
def login():
13+
username = driver.find_element_by_id("login-email") # Getting the login element
14+
username.send_keys("username") # Sending the keys for username
15+
password = driver.find_element_by_id("login-password") # Getting the password element
16+
password.send_keys("password") # Sending the keys for password
17+
driver.find_element_by_id("login-submit").click() # Getting the tag for submit button
18+
19+
def goto_network():
20+
driver.find_element_by_id("mynetwork-tab-icon").click()
21+
22+
def send_requests():
23+
n= input("Number of requsts: ") # Number of requests you want to send
24+
for i in range(0,n):
25+
pag.click(880,770) # position(in px) of connection button
26+
print("Done!")

0 commit comments

Comments
 (0)