Skip to content
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

The script doesn't apply to jobs #137

Closed
mohamed2m2018 opened this issue Aug 29, 2024 · 30 comments
Closed

The script doesn't apply to jobs #137

mohamed2m2018 opened this issue Aug 29, 2024 · 30 comments
Assignees
Labels
bug Something isn't working

Comments

@mohamed2m2018
Copy link

mohamed2m2018 commented Aug 29, 2024

Screenshot 2024-08-29 at 7 06 38 PM I got this logs, but the script just scrolls down the jobs and doesn't apply to any
@iliasjaddi
Copy link

Me too!

@feder-cr
Copy link
Owner

so strange

@feder-cr
Copy link
Owner

check your openai balance

@iliasjaddi
Copy link

I have enough openai balance.
imagen
The problem is that it only keeps scrolling the jobs but doesn't apply to any!

@reneekharat
Copy link

same problem here, and I have enough on openai as well

@pafthinder
Copy link

yeah, it doesn't get to the point of using OpenAI API ; it doesn't find any job.
It looks like class names of HTML elements are misaligned

@feder-cr check the issue
#114

I am thinking maybe it's because I have LI learning subscription and this changes whole layout?
@reneekharat do you have LI premium or LI learning subscription?

@Andres-Ventura
Copy link

testing it now

@Andres-Ventura
Copy link

I can work on this if you want @feder-cr

@Andres-Ventura
Copy link

Andres-Ventura commented Aug 29, 2024

update: heres the line causing the issue mates

utils.printyellow(f"Starting job list process") <--- I printed this job_list_elements = self.driver.find_elements(By.CLASS_NAME, 'scaffold-layout__list-container')[0].find_elements(By.CLASS_NAME, 'jobs-search-results__list-item')

File: linkedIn_job_manager.py

@B-Chaudhry
Copy link

I am facing the same problem

@reneekharat
Copy link

yeah, it doesn't get to the point of using OpenAI API ; it doesn't find any job. It looks like class names of HTML elements are misaligned

@feder-cr check the issue #114

I am thinking maybe it's because I have LI learning subscription and this changes whole layout? @reneekharat do you have LI premium or LI learning subscription?

no I have the standard. previously had premium though, not sure if that changes anything

@pafthinder
Copy link

@reneekharat damn, it's bad. because there is no pattern now. you have standard account like people for whom bot works.
so this is not the issue with the layout I would say

@Andres-Ventura ; yeah, I figured it out as well in #114 ; check it out please, I have put there some additional comments. Got any idea what to do with it?

@feder-cr
Copy link
Owner

feder-cr commented Sep 3, 2024

@Andres-Ventura yes for sure bro!

@Andres-Ventura
Copy link

Update: the issue lies inside the extract_job_information_from_tile function inside file"linkedin_job_manager.py" where a few find_element() references are not being referenced correctly.

@naganikshith04
Copy link

Any update on the fix?

@Andres-Ventura
Copy link

Got it to work locally. running some tests

@naganikshith04
Copy link

naganikshith04 commented Sep 4, 2024 via email

@azjz92 azjz92 added the bug Something isn't working label Sep 4, 2024
@nick-casa
Copy link

nick-casa commented Sep 4, 2024

Here's my fix to this. I did this real quick, but I haven't had the chance to double check. After doing some debugging, I found the Job objects were all being marked as "Applied", so all I did was change line 261 in linkedIn_job_manager.py to:

 try:
     apply_method = job_tile.find_element(
            By.CLASS_NAME, "job-card-container__footer-job-state"
      ).text
except:
     apply_method = "N/A"

The class name was previously "apply-method", but I could not find this element on my page. Instead, I believe it was looking for the job state. Once I changed this, not all of the jobs were marked as applied.

Hope this helps @naganikshith04 @Andres-Ventura @pafthinder

@naganikshith04
Copy link

naganikshith04 commented Sep 4, 2024 via email

@SaadKhalidAlarifi
Copy link

I am having the same issue (Applying to AU jobs)

@pafthinder
Copy link

try checking #114

@feder-cr
Copy link
Owner

feder-cr commented Sep 8, 2024

@Andres-Ventura any update?

@pafthinder
Copy link

@feder-cr why would u close #114 without resolving it and asking about solution from community in other issue? let's merge those to one and keep it open, as you can see this is issue affecting a lot of people using the bot

I managed to make bot running in my environment in #114 but it doesn't mean the issue is solved. App on the whole still works bad and it requires loads of work - collaborative effort

@feder-cr
Copy link
Owner

@pafthinder sorry

@RahulSinghalChicago
Copy link

RahulSinghalChicago commented Sep 15, 2024

Here's the code that I'm using for the fix. Replace the method in linkedin_job_manager.py

@feder-cr let me know if you want a PR

def extract_job_information_from_tile(self, job_tile):
        job_title, company, job_location, apply_method, link = "", "", "", "", ""
        try:
            # job_title = job_tile.find_element(By.CLASS_NAME, 'job-card-list__title').text
            # link = job_tile.find_element(By.CLASS_NAME, 'job-card-list__title').get_attribute('href').split('?')[0]
            # company = job_tile.find_element(By.CLASS_NAME, 'job-card-container__primary-description').text
            job_title = job_tile.find_element(By.CLASS_NAME, 'job-card-job-posting-card-wrapper__title').text            
            link = job_tile.find_element(By.CLASS_NAME, 'job-card-job-posting-card-wrapper__card-link').get_attribute('href').split('currentJobId=')[1].split('&')[0]
            link = "https://www.linkedin.com/jobs/view/" + link            
            company = job_tile.find_element(By.CLASS_NAME, 'artdeco-entity-lockup__subtitle ').text
        except:
            print("except")
            print(job_title, company, job_location, link, apply_method)
            pass
        try:
            # job_location = job_tile.find_element(By.CLASS_NAME, 'job-card-container__metadata-item').text
            job_location = job_tile.find_element(By.CLASS_NAME, 'artdeco-entity-lockup__subtitle ember-view').text
        except:
            pass
        try:
            # apply_method = job_tile.find_element(By.CLASS_NAME, 'job-card-container__apply-method').text
            apply_method = job_tile.find_element(By.CLASS_NAME, 'job-card-job-posting-card-wrapper__footer-item').text
        except:
            apply_method = "Applied"

        return job_title, company, job_location, link, apply_method

@iwnfubb
Copy link

iwnfubb commented Sep 15, 2024

The fix from @RahulSinghalChicago works for me !

@feder-cr
Copy link
Owner

@RahulSinghalChicago yes for sure, join the telegram group, so we can discuss it more easily - > https://t.me/AIhawkCommunity

@RahulSinghalChicago
Copy link

fyi, the element selector reverted to the original version on my linkedin today, so the code update will allow for both.

@feder-cr
Copy link
Owner

@RahulSinghalChicago please send PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

14 participants