joeyism / linkedin_scraper

A library that scrapes Linkedin for user data
GNU General Public License v3.0
2.01k stars 560 forks source link

TimeoutException(message, screen, stacktrace) #98

Open samduuk opened 3 years ago

samduuk commented 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)

aradzekler commented 3 years ago

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.