joaosilvalopes / linkedin-easy-apply-bot

MIT License
160 stars 58 forks source link

Location 'United States' is giving an error in Linkedin #62

Closed Alexm1988 closed 1 year ago

Alexm1988 commented 1 year ago

This is a part of my config.ts file:

// JOB SEARCH PARAMETERS
  KEYWORDS: "(sdet|QA Engineer|Software QA|Software Quality|Senior SDET).* (engineer|analyst)"
,
  LOCATION: "United States",
  WORKPLACE: {
    REMOTE: true,
    ON_SITE: false,
    HYBRID: true,
  },
  JOB_TITLE: "(sdet|QA Engineer|Software QA|Software Quality|Senior SDET).* (engineer|analyst)",
  JOB_DESCRIPTION: "^((?!(primeit))(.|[\n\r]))*$",
  JOB_DESCRIPTION_LANGUAGES: ["any"], // replace value with ["any"] to accept all job description laguages

With this setup, the location field is not being populated properly(it adds the space after the string in config.LOCATION) and gives error:

Screen Shot 2023-04-26 at 10 33 56 PM
Alexm1988 commented 1 year ago

This error was caused by the fact that my search regex phrase was not returning any results. I updated the Title and keyword strings in the config, and all works as expected.