diff --git a/linkedineasyapply.py b/linkedineasyapply.py index 1990324e..ca23bb26 100644 --- a/linkedineasyapply.py +++ b/linkedineasyapply.py @@ -410,10 +410,10 @@ def apply_jobs(self, location): try: ## patch to incorporate new 'verification' crap by LinkedIn # job_title = job_tile.find_element(By.CLASS_NAME, 'job-card-list__title').text # original code - job_title_element = job_tile.find_element(By.CLASS_NAME, 'job-card-list__title--link') + job_title_element = job_tile.find_element(By.CLASS_NAME, 'job-card-job-posting-card-wrapper__card-link') job_title = job_title_element.find_element(By.TAG_NAME, 'strong').text - link = job_tile.find_element(By.CLASS_NAME, 'job-card-list__title--link').get_attribute('href').split('?')[0] + link = job_tile.find_element(By.CLASS_NAME, 'job-card-job-posting-card-wrapper__card-link').get_attribute('href').split('?')[0] except: pass try: @@ -457,7 +457,7 @@ def apply_jobs(self, location): while retries < max_retries: try: # TODO: This is throwing an exception when running out of jobs on a page - job_el = job_tile.find_element(By.CLASS_NAME, 'job-card-list__title--link') + job_el = job_tile.find_element(By.CLASS_NAME, 'job-card-job-posting-card-wrapper__card-link') job_el.click() break except StaleElementReferenceException: