joeyism / linkedin_scraper

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

you are not logged in! please verify the capcha then press any key to continue... Error!! #83

Closed khushi1503 closed 3 years ago

khushi1503 commented 3 years ago

Following is my code -

from linkedin_scraper import Person, actions
from selenium import webdriver
driver = webdriver.Chrome('location of driver')

email = "username"
password = "password"
actions.login(driver, email, password)
person = Person("https://www.linkedin.com/in/khushi-thakkar-906b56188/", driver=driver)
person.scrape(close_on_complete=False)

print(person)

But I am constantly getting the following error (even though I have logged into linkedin) - you are not logged in! please verify the capcha then press any key to continue...

joeyism commented 3 years ago

Add a break after actions.login, finish the captcha, then run the scrape

khushi1503 commented 3 years ago

What is to be entered in the captcha? From where do we get it?

joeyism commented 3 years ago

You need to verify that you are not a bot by manually filling out CAPTCHA. So when chrome starts up, you can manually enter the CAPTCHA code, and when you get to the main page, you can start the scraping process