Open samduuk opened 3 years ago
I have tried running the following code, but keep getting TimeoutException(message, screen, stacktrace). Is the following code correct?
from linkedin_scraper import Person, Company, actions from selenium import webdriver from linkedin_scraper import Company
driver = webdriver.Chrome("/Applications/chromedriver")
email = 'myemailaddress' password = 'mypassword' actions.login(driver, email, password) # if email and password isnt given, it'll prompt in terminal
actions.login(driver) # entered user name / password company = Company("https://www.linkedin.com/company/companyname/mycompany/", driver=driver, close_on_complete=False) print(company)
comment out the line: chrome_options.add_argument("--headless") and try to see in the browser what is happening, maybe your account is blocked/wrong login details.
I have tried running the following code, but keep getting TimeoutException(message, screen, stacktrace). Is the following code correct?
from linkedin_scraper import Person, Company, actions from selenium import webdriver from linkedin_scraper import Company
driver = webdriver.Chrome("/Applications/chromedriver")
email = 'myemailaddress' password = 'mypassword' actions.login(driver, email, password) # if email and password isnt given, it'll prompt in terminal
actions.login(driver) # entered user name / password company = Company("https://www.linkedin.com/company/companyname/mycompany/", driver=driver, close_on_complete=False) print(company)