-
Notifications
You must be signed in to change notification settings - Fork 763
Open
Description
Hey, I downloaded the repo, created a virtual env, installed the requirement, and then run this simple script:
from linkedin_scraper import JobSearch, actions
from selenium import webdriver
driver = webdriver.Chrome()
email = "user@gmail.com"
password = "strongpassword"
actions.login(driver, email, password)
# if email and password isnt given, it'll prompt in terminal
input("Press Enter")
job_search = JobSearch(driver=driver, close_on_complete=False, scrape=True)
job_listings = job_search.search("Machine Learning Engineer")
print(job_listings[1])
# Don't forget to close the driver when done
driver.quit()
It logins, but then i get this error:
Traceback (most recent call last):
File "/home/kira/Yandex.Disk/Development/linux/python/linkedin_scraper/test.py", line 12, in <module>
job_search = JobSearch(driver=driver, close_on_complete=False, scrape=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kira/Yandex.Disk/Development/linux/python/linkedin_scraper/linkedin_scraper/job_search.py", line 25, in __init__
self.scrape(close_on_complete, scrape_recommended_jobs)
File "/home/kira/Yandex.Disk/Development/linux/python/linkedin_scraper/linkedin_scraper/job_search.py", line 30, in scrape
self.scrape_logged_in(close_on_complete=close_on_complete, scrape_recommended_jobs=scrape_recommended_jobs)
File "/home/kira/Yandex.Disk/Development/linux/python/linkedin_scraper/linkedin_scraper/job_search.py", line 58, in scrape_logged_in
for job_posting in area.find_elements_by_class_name("jobs-job-board-list__item"):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'WebElement' object has no attribute 'find_elements_by_class_name'
what I'm doing wrong?
Metadata
Metadata
Assignees
Labels
No labels