Open reddyakilesh22 opened 3 years ago
@joeyism I am having same issue (attached)
Yup, I'm getting the same thing as @sargupta. @joeyism Please look into this.
It seems like this has to do with linkedin not letting you login. If you don't use --headless
, what does Linkedin on Chrome look like?
Having the same issue
@akshayminocha5 Bro add/do these changes and it will work.
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
I have the same problem but the solution proposed don't work for me. This is my code:
options = Options()
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--disable-gpu')
options.add_argument("--disable-notifications")
options.add_experimental_option('useAutomationExtension', False)
options.binary_location='/usr/bin/chromium-browser'
driver_binary = "/usr/bin/chromedriver"
#driver = webdriver.Chrome(driver_binary, chrome_options=options)
driver = webdriver.Chrome(ChromeDriverManager().install(), chrome_options=options)
email = "username@gmail.com"
password = "password"
actions.login(driver, email, password)
I get the following error:
/usr/local/lib/python3.7/dist-packages/webdriver_manager/utils.py in chrome_version(browser_type)
140 version = re.search(pattern, stdout)
141 if not version:
--> 142 raise ValueError(f'Could not get version for Chrome with this command: {cmd}')
143 current_version = version.group(0)
144 return current_version
ValueError: Could not get version for Chrome with this command: google-chrome --version || google-chrome-stable --version
And this is my chrome and chromedriver versions:
Please help!
I have the same problem but the solution proposed don't work for me. This is my code:
options = Options() options.add_argument('--headless') options.add_argument('--no-sandbox') options.add_argument('--disable-dev-shm-usage') options.add_argument('--disable-gpu') options.add_argument("--disable-notifications") options.add_experimental_option('useAutomationExtension', False) options.binary_location='/usr/bin/chromium-browser' driver_binary = "/usr/bin/chromedriver" #driver = webdriver.Chrome(driver_binary, chrome_options=options) driver = webdriver.Chrome(ChromeDriverManager().install(), chrome_options=options) email = "username@gmail.com" password = "password" actions.login(driver, email, password)
I get the following error:
/usr/local/lib/python3.7/dist-packages/webdriver_manager/utils.py in chrome_version(browser_type) 140 version = re.search(pattern, stdout) 141 if not version: --> 142 raise ValueError(f'Could not get version for Chrome with this command: {cmd}') 143 current_version = version.group(0) 144 return current_version ValueError: Could not get version for Chrome with this command: google-chrome --version || google-chrome-stable --version
And this is my chrome and chromedriver versions:
- Chromium 87.0.4280.66 Built on Ubuntu
- ChromeDriver 87.0.4280.66
Please help!
Do you have google-chrome
or google-chrome-stable
installed?
I have the same problem but the solution proposed don't work for me. This is my code:
options = Options() options.add_argument('--headless') options.add_argument('--no-sandbox') options.add_argument('--disable-dev-shm-usage') options.add_argument('--disable-gpu') options.add_argument("--disable-notifications") options.add_experimental_option('useAutomationExtension', False) options.binary_location='/usr/bin/chromium-browser' driver_binary = "/usr/bin/chromedriver" #driver = webdriver.Chrome(driver_binary, chrome_options=options) driver = webdriver.Chrome(ChromeDriverManager().install(), chrome_options=options) email = "username@gmail.com" password = "password" actions.login(driver, email, password)
I get the following error:
/usr/local/lib/python3.7/dist-packages/webdriver_manager/utils.py in chrome_version(browser_type) 140 version = re.search(pattern, stdout) 141 if not version: --> 142 raise ValueError(f'Could not get version for Chrome with this command: {cmd}') 143 current_version = version.group(0) 144 return current_version ValueError: Could not get version for Chrome with this command: google-chrome --version || google-chrome-stable --version
And this is my chrome and chromedriver versions:
- Chromium 87.0.4280.66 Built on Ubuntu
- ChromeDriver 87.0.4280.66
Please help!
Do you have
google-chrome
orgoogle-chrome-stable
installed?
No, I only installed Chromium browser!
@dazulu4 you need to install google-chrome
or google-chrome-stable
I'm getting exactly the same error: File "C:\Users\User\PycharmProjects\dough\scraping\linkedin_profile_scraper\actions.py", line 48, in login WebDriverWait(driver, randint(5, 6)).until(EC.presence_of_element_located((By.ID, "profile-nav-item"))) File "C:\Users\User\anaconda3\envs\scraping_env_3_8\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message:
when trying to log in to LinkedIn, havent change anything in actions.py and it started happening today (everything worked till now), maybe LinkedIn changed something? maybe something with "profile-nav-item". the problem happens also with a wait time=300.
This is the code I used and I'm getting an error like: