Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c0c628b

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in a7d1e3e according to the output from Autopep8. Details: https://app.deepsource.com/gh/avinashkranjan/Amazing-Python-Scripts/transform/7544df83-e18c-468c-a4d2-e626ccc20337/
1 parent 6c21609 commit c0c628b

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

‎Auto-Linkedin/Auto-LinkedIn.py‎

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
1-
from selenium import webdriver #connect python with webbrowser-chrome
1+
from selenium import webdriver # connect python with webbrowser-chrome
22
from selenium.webdriver.common.keys import Keys
33
import pyautogui as pag
44

5+
56
def main():
6-
url = "http://linkedin.com/" #url of LinkedIn
7+
url = "http://linkedin.com/" #url of LinkedIn
78
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+
# path to browser web driver
10+
driver = webdriver.Chrome('F:\Argha\WebDriver\chromedriver.exe')
911
driver.get(url)
1012

13+
1114
def login():
12-
username = driver.find_element_by_id("login-email") # Getting the login element
13-
username.send_keys("username") # Sending the keys for username
14-
password = driver.find_element_by_id("login-password") # Getting the password element
15-
password.send_keys("password") # Sending the keys for password
16-
driver.find_element_by_id("login-submit").click() # Getting the tag for submit button
15+
username = driver.find_element_by_id(
16+
"login-email") # Getting the login element
17+
# Sending the keys for username
18+
username.send_keys("username")
19+
password = driver.find_element_by_id(
20+
"login-password") # Getting the password element
21+
# Sending the keys for password
22+
password.send_keys("password")
23+
# Getting the tag for submit button
24+
driver.find_element_by_id("login-submit").click()
25+
1726

1827
def goto_network():
1928
driver.find_element_by_id("mynetwork-tab-icon").click()
2029

30+
2131
def send_requests():
22-
n= input("Number of requsts: ") # Number of requests you want to send
23-
for i in range(0,n):
24-
pag.click(880,770) # position(in px) of connection button
32+
n= input("Number of requsts: ") # Number of requests you want to send
33+
for i in range(0,n):
34+
pag.click(880,770) # position(in px) of connection button
2535
print("Done!")
26-

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /