-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoSuchElementException - Unable to locate element: {"method":"tag name","selector":"span"} #183
Comments
same problem here .... |
Could it be because LinkedIn stopped allowing web scrapping from their page ? |
What version of linkedin_scraper are you using? Try updating to the latest version. Can you provide the whole error message with the reference to the lines that cause problem? It might be covered in #173 |
`from linkedin_scraper import Person, actions email = "Testssk1@gmail.com" person_scrape=person.scrape() driver.close()` NoSuchElementException Traceback (most recent call last) File ~/.local/lib/python3.8/site-packages/linkedin_scraper/person.py:64, in Person.init(self, linkedin_url, name, about, experiences, educations, interests, accomplishments, company, job_title, contacts, driver, get, scrape, close_on_complete, time_to_wait_after_login) File ~/.local/lib/python3.8/site-packages/linkedin_scraper/person.py:89, in Person.scrape(self, close_on_complete) File ~/.local/lib/python3.8/site-packages/linkedin_scraper/person.py:285, in Person.scrape_logged_in(self, close_on_complete) |
My error is also pointing to the below mentioned line. I have updated the libraries to the latest ones. Yet getting this error. person = Person("https://www.linkedin.com/in/rohit-kumar-verma-3a794238/",driver=driver,scrape=True,close_on_complete=False) |
Hello,
I was running the below code to scrape a profile but couldn't scrape and got the below mentioned error. I would request you to please help me resolve my error and point out my mistake if any. Thank you in advance.
`from linkedin_scraper import Person, actions
from selenium import webdriver
driver = webdriver.Chrome()
email = 'abc@gmail.com'
password = 'abc123'
actions.login(driver, email, password) # if email and password isnt given, it'll prompt in terminal
person = Person("https://www.linkedin.com/in/rohit-kumar-verma-3a794238/",driver=driver,scrape=True,close_on_complete=False)
driver.implicitly_wait(10)
person.scrape()
`
Output:
NoSuchElementException: Message: no such element: Unable to locate element: {"method":"tag name","selector":"span"}
(Session info: chrome=114.0.5735.199); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
Backtrace:
GetHandleVerifier [0x010FA813+48355]
(No symbol) [0x0108C4B1]
(No symbol) [0x00F95358]
(No symbol) [0x00FC09A5]
(No symbol) [0x00FC0B3B]
(No symbol) [0x00FB9AE1]
(No symbol) [0x00FDA784]
(No symbol) [0x00FB9A36]
(No symbol) [0x00FDAA94]
(No symbol) [0x00FEC922]
(No symbol) [0x00FDA536]
(No symbol) [0x00FB82DC]
(No symbol) [0x00FB93DD]
GetHandleVerifier [0x0135AABD+2539405]
GetHandleVerifier [0x0139A78F+2800735]
GetHandleVerifier [0x0139456C+2775612]
GetHandleVerifier [0x011851E0+616112]
(No symbol) [0x01095F8C]
(No symbol) [0x01092328]
(No symbol) [0x0109240B]
(No symbol) [0x01084FF7]
BaseThreadInitThunk [0x76C500C9+25]
RtlGetAppContainerNamedObjectPath [0x77837B4E+286]
RtlGetAppContainerNamedObjectPath [0x77837B1E+238]
The text was updated successfully, but these errors were encountered: