Created
May 2, 2024 15:25
-
-
Save GarrettMooney/cbc8435d75c78ab5b34cad5ff706fee6 to your computer and use it in GitHub Desktop.
linkedin search
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""View remote jobs in a 3 day interval.""" | |
BASE_URL = "https://www.linkedin.com/jobs/search/" | |
def get_linkedin_jobs(search, n_days=3, remote=True): | |
# time | |
seconds_in_day = 86400 | |
n_seconds = n_days * seconds_in_day | |
query = BASE_URL + "?f_TPR=r" + str(n_seconds) | |
# remote | |
if remote: | |
query += "&f_WT=2" | |
# search terms | |
search = search.replace(" ", "%20") | |
query += "&keywords=" + search | |
return query |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment