diff --git a/README.md b/README.md index 3889798ab..e52c4fb7b 100644 --- a/README.md +++ b/README.md @@ -178,9 +178,19 @@ This file contains sensitive information. Never share or commit this file to ver This file defines your job search parameters and bot behavior. Each section contains options that you can customize: - `remote: [true/false]` + + - Set to `true` to include remote jobs, `false` to exclude them + +- `hybrid: [true/false]` + + - Set to `true` to include remote jobs, `false` to exclude them + +- `onsite: [true/false]` + - Set to `true` to include remote jobs, `false` to exclude them - `experienceLevel:` + - Set desired experience levels to `true`, others to `false` - `jobTypes:` @@ -506,7 +516,7 @@ Each section has specific fields to fill out: requires_uk_visa: "No" legally_allowed_to_work_in_uk: "Yes" requires_uk_sponsorship: "No" - ``` + ``` - `work_preferences:` - Specify your preferences for work arrangements and conditions. diff --git a/data_folder/config.yaml b/data_folder/config.yaml index 25616cd4d..19571c34e 100644 --- a/data_folder/config.yaml +++ b/data_folder/config.yaml @@ -1,4 +1,6 @@ remote: true +hybrid: true +onsite: true experienceLevel: internship: false diff --git a/data_folder_example/config.yaml b/data_folder_example/config.yaml index 9e29fa7b1..6b53e5c87 100644 --- a/data_folder_example/config.yaml +++ b/data_folder_example/config.yaml @@ -1,4 +1,6 @@ remote: true +hybrid: true +onsite: true experienceLevel: internship: false diff --git a/src/aihawk_job_manager.py b/src/aihawk_job_manager.py index c87c61ea5..2a721dc4d 100644 --- a/src/aihawk_job_manager.py +++ b/src/aihawk_job_manager.py @@ -418,8 +418,17 @@ def write_to_file(self, job, file_name): def get_base_search_url(self, parameters): logger.debug("Constructing base search URL") url_parts = [] - if parameters['remote']: - url_parts.append("f_CF=f_WRA") + working_type_filter = [] + if parameters.get("onsite") == True: + working_type_filter.append("1") + if parameters.get("remote") == True: + working_type_filter.append("2") + if parameters.get("hybrid") == True: + working_type_filter.append("3") + + if working_type_filter: + url_parts.append(f"f_WT={'%2C'.join(working_type_filter)}") + experience_levels = [str(i + 1) for i, (level, v) in enumerate(parameters.get('experience_level', {}).items()) if v] if experience_levels: