LinkedIn-Easy-Apply-Bot: Syntax Error in easyapplybot.py

Getting this error trying to run the script:

line 206
    self.browser, jobs_per_page: int = self.next_jobs_page(position,
    ^^^^^^^^^^^^
SyntaxError: only single target (not tuple) can be annotated

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20

Most upvoted comments

I’ve implemented these fixes, and the code will run, but now it’s not applying to any jobs 😦 it just keeps sleeping and waiting while the LinkedIn jobs are pulled up on the screen.

I had the same issue as well. LinkedIn has been changing the HTML lately and that’s why your code cannot find the element. Change line 186 to:

                  './/a[@data-control-id]'

There may be some lingering issues finding the jobIDs, but this at least should allow your code to apply. Hope this helps!