Skip to content

Commit

Permalink
Merge pull request #621 from cjbbb/main
Browse files Browse the repository at this point in the history
  • Loading branch information
feder-cr authored Oct 27, 2024
2 parents 131dae6 + 1e13f9b commit 427376f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:`
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions data_folder/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
remote: true
hybrid: true
onsite: true

experienceLevel:
internship: false
Expand Down
2 changes: 2 additions & 0 deletions data_folder_example/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
remote: true
hybrid: true
onsite: true

experienceLevel:
internship: false
Expand Down
13 changes: 11 additions & 2 deletions src/aihawk_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 427376f

Please sign in to comment.