Skip to content

Commit

Permalink
Merge pull request #553 from sfcheng/encode_position
Browse files Browse the repository at this point in the history
  • Loading branch information
feder-cr authored Oct 16, 2024
2 parents 87e0e5b + 3679c8e commit 4f63902
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/aihawk_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from src.job import Job
from src.aihawk_easy_applier import AIHawkEasyApplier
from loguru import logger
import urllib.parse


class EnvironmentKeys:
Expand Down Expand Up @@ -438,8 +439,9 @@ def get_base_search_url(self, parameters):

def next_job_page(self, position, location, job_page):
logger.debug(f"Navigating to next job page: {position} in {location}, page {job_page}")
encoded_position = urllib.parse.quote(position)
self.driver.get(
f"https://www.linkedin.com/jobs/search/{self.base_search_url}&keywords={position}{location}&start={job_page * 25}")
f"https://www.linkedin.com/jobs/search/{self.base_search_url}&keywords={encoded_position}{location}&start={job_page * 25}")

def extract_job_information_from_tile(self, job_tile):
logger.debug("Extracting job information from tile")
Expand Down Expand Up @@ -501,3 +503,4 @@ def is_already_applied_to_company(self, company):
except json.JSONDecodeError:
continue
return False

0 comments on commit 4f63902

Please sign in to comment.