Code Monkey home page Code Monkey logo

Comments (5)

Citizen3rased avatar Citizen3rased commented on September 4, 2024 1

I had to make multiple changes between lines 125-129 such as for class names as follows to now have it applying to jobs, albeit very slowly:

    try:
        job_results = self.browser.find_element(By.CLASS_NAME, "jobs-search-results-list")
        self.scroll_slow(job_results)
        self.scroll_slow(job_results, step=300, reverse=True)

        job_list = self.browser.find_elements(By.CLASS_NAME, 'scaffold-layout__list-container')[0].find_elements(By.CLASS_NAME, 'jobs-search-results__list-item')

from linkedin-easy-apply-bot.

voidbydefault avatar voidbydefault commented on September 4, 2024

Small update. I tried same config.yaml on another account (only difference is email and password, rest of the config remained same), and the bot was working fine. When I revert back to the first account -- again same config.yaml except email/password, it started to throw exceptions as follows (copying all output). Both accounts are working normally with easy apply working.

Starting the search for trainee in Brampton, Ontario, Canada.
Going to job page 0
Starting the application process for this page...
Traceback (most recent call last):
  File "/home/me/Documents/LinkedIn-Easy-Apply-Bot/linkedineasyapply.py", line 124, in apply_jobs
    job_results = self.browser.find_element_by_class_name("jobs-search-results")
  File "/home/me/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 766, in find_element_by_class_name
    return self.find_element(by=By.CLASS_NAME, value=name)
  File "/home/me/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 1251, in find_element
    return self.execute(Command.FIND_ELEMENT, {
  File "/home/me/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 430, in execute
    self.error_handler.check_response(response)
  File "/home/me/.local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".jobs-search-results"}
  (Session info: chrome=102.0.5005.61)
Stacktrace:
#0 0x5568b16fcf33 <unknown>
#1 0x5568b1447118 <unknown>
#2 0x5568b147d3f7 <unknown>
#3 0x5568b147d5c1 <unknown>
#4 0x5568b14b05c4 <unknown>
#5 0x5568b149af9d <unknown>
#6 0x5568b14ae2e4 <unknown>
#7 0x5568b149ae63 <unknown>
#8 0x5568b147082a <unknown>
#9 0x5568b1471985 <unknown>
#10 0x5568b17414cd <unknown>
#11 0x5568b17455ec <unknown>
#12 0x5568b172b71e <unknown>
#13 0x5568b1746238 <unknown>
#14 0x5568b1720870 <unknown>
#15 0x5568b1762608 <unknown>
#16 0x5568b1762788 <unknown>
#17 0x5568b177cf1d <unknown>
#18 0x7f06386b2eae <unknown>


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/me/Documents/LinkedIn-Easy-Apply-Bot/linkedineasyapply.py", line 81, in start_applying
    self.apply_jobs(location)
  File "/home/me/Documents/LinkedIn-Easy-Apply-Bot/linkedineasyapply.py", line 130, in apply_jobs
    raise Exception("No more jobs on this page")
Exception: No more jobs on this page
Sleeping for 896.2878136634827 seconds.

from linkedin-easy-apply-bot.

Citizen3rased avatar Citizen3rased commented on September 4, 2024

I found that jobs-search-results is not a class on the jobs page anymore, at least not for me. I had to change it to jobs-search-results-list.
However, I am still having an issue where I see it scrolling down the jobs listings, but does not apply to any.

from linkedin-easy-apply-bot.

logix727 avatar logix727 commented on September 4, 2024

I had to make multiple changes between lines 125-129 such as for class names as follows to now have it applying to jobs, albeit very slowly:

    try:
        job_results = self.browser.find_element(By.CLASS_NAME, "jobs-search-results-list")
        self.scroll_slow(job_results)
        self.scroll_slow(job_results, step=300, reverse=True)

        job_list = self.browser.find_elements(By.CLASS_NAME, 'scaffold-layout__list-container')[0].find_elements(By.CLASS_NAME, 'jobs-search-results__list-item')

does this still work?

to answer my question yes

from linkedin-easy-apply-bot.

xMacJ avatar xMacJ commented on September 4, 2024

The above code does not work anymore.

from linkedin-easy-apply-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.