Skip to content

Instantly share code, notes, and snippets.

@GarrettMooney
Created May 2, 2024 15:25
Show Gist options
  • Save GarrettMooney/cbc8435d75c78ab5b34cad5ff706fee6 to your computer and use it in GitHub Desktop.
Save GarrettMooney/cbc8435d75c78ab5b34cad5ff706fee6 to your computer and use it in GitHub Desktop.
linkedin search
"""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