Skip to content

Search jobs

thml.search.jobs

Classes:

Indeed(country: str = 'US')

Bases: _JobBase

Methods:

Attributes:

browser_kwargs = {} instance-attribute

context_kwargs = {} instance-attribute

page = None instance-attribute

max_jobs = 100 instance-attribute

jobs = [] instance-attribute

country = country instance-attribute

base_url = 'https://www.indeed.com/stc' instance-attribute

search_jobs(search_string: str = 'Molecular Dynamics Simulation', location: str = 'United States', filters: dict = None, detail: bool = False, max_jobs: int = 100)

Search jobs on the website

Parameters:

  • search_string (str, default: 'Molecular Dynamics Simulation' ) –

    a string to search for jobs

  • location (str, default: 'United States' ) –

    location to search for jobs. A string in form "city, state, zip", or "remote"

  • filters (dict, default: None ) –

    filters to apply. Available keys: "distance", "job_type", "min_salary", "date_posted"

  • detail (bool, default: False ) –

    get job details or not

  • max_jobs (int, default: 100 ) –

    maximum number of jobs to get

Returns:

  • list[dict]: list of job items

get_job_single_page() -> list async

Get jobs from search result on single page

get_job_multi_pages() -> list async

Get jobs from multi pages

get_job_detail() -> list async

Get details of jobs from job lists

SimplyHired(country: str = 'US')

Bases: _JobBase

Methods:

Attributes:

browser_kwargs = {} instance-attribute

context_kwargs = {} instance-attribute

page = None instance-attribute

max_jobs = 100 instance-attribute

jobs = [] instance-attribute

base_url = 'https://www.simplyhired.com/' instance-attribute

jobperpage = 20 instance-attribute

search_jobs(search_string: str = 'Molecular Dynamics Simulation', location: str = 'United States', filters: dict = None, detail: bool = False, max_jobs: int = 100)

Search jobs on the website

Parameters:

  • search_string (str, default: 'Molecular Dynamics Simulation' ) –

    a string to search for jobs

  • location (str, default: 'United States' ) –

    location to search for jobs. A string in form "city, state, zip", or "remote"

  • filters (dict, default: None ) –

    filters to apply. Available keys: "distance", "job_type", "min_salary", "date_posted"

  • detail (bool, default: False ) –

    get job details or not

  • max_jobs (int, default: 100 ) –

    maximum number of jobs to get

Returns:

  • list[dict]: list of job items

get_job_single_page() -> list async

Get jobs from search result on single page

get_job_multi_pages() -> list async

Get jobs from multi pages

get_job_detail() -> list async

Get details of jobs from job lists

LinkedIn(cookie_file: str = None)

Bases: _JobBase

Methods:

Attributes:

browser_kwargs = {} instance-attribute

context_kwargs = {} instance-attribute

page = None instance-attribute

max_jobs = 100 instance-attribute

jobs = [] instance-attribute

base_url = 'https://www.linkedin.com/jobs' instance-attribute

jobperpage = 25 instance-attribute

search_jobs(search_string: str = 'Molecular Dynamics Simulation', location: str = 'United States', filters: dict = None, detail: bool = False, max_jobs: int = 100)

Search jobs on the website

Parameters:

  • search_string (str, default: 'Molecular Dynamics Simulation' ) –

    a string to search for jobs

  • location (str, default: 'United States' ) –

    location to search for jobs. A string in form "city, state, zip", or "remote"

  • filters (dict, default: None ) –

    filters to apply. Available keys: "distance", "job_type", "min_salary", "date_posted"

  • detail (bool, default: False ) –

    get job details or not

  • max_jobs (int, default: 100 ) –

    maximum number of jobs to get

Returns:

  • list[dict]: list of job items

get_job_single_page() -> list async

Get jobs from search result on single page

get_job_multi_pages() -> list async

Get jobs from multi pages