feat: filter for remote jobs only across Canada
Add remote_only config option that appends LinkedIn's f_WT=2 filter param to search URLs. Change location from Toronto to Canada for broader remote job coverage. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -83,6 +83,7 @@ class LinkedInJobScraper:
|
||||
seen_links = set()
|
||||
encoded_keyword = quote(keyword)
|
||||
encoded_location = quote(location)
|
||||
remote_only = self.config.get("remote_only", False)
|
||||
delay_range = self.config.get("delay_between_pages", [3, 6])
|
||||
|
||||
for page in range(pages):
|
||||
@@ -93,6 +94,8 @@ class LinkedInJobScraper:
|
||||
f"keywords={encoded_keyword}&location={encoded_location}"
|
||||
f"&start={start_index}"
|
||||
)
|
||||
if remote_only:
|
||||
url += "&f_WT=2"
|
||||
|
||||
try:
|
||||
response = self.session.get(url, timeout=15)
|
||||
|
||||
Reference in New Issue
Block a user