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:
Harwinder
2026-05-21 11:49:07 -04:00
parent f66548f388
commit e608d367e2
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -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)