We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e691228 commit 8aeba85Copy full SHA for 8aeba85
Linkedin_Connections_Scrapper/script.py
@@ -5,6 +5,7 @@
5
from selenium import webdriver
6
import pandas as pd
7
import time
8
+import sys
9
import re
10
11
pattern_name = "\\n(.+)\\n" # Used to extract names
@@ -49,6 +50,11 @@ def login(email, password):
49
50
# Locate Submit button and click it
51
submit = driver.find_element_by_class_name("sign-in-form__submit-button")
52
submit.click()
53
+ # Check credentials output
54
+ if driver.title != "LinkedIn":
55
+ print("Provided E-mail/Password is wrong!")
56
+ driver.quit()
57
+ sys.exit()
58
# Return session
59
return driver
60
0 commit comments