Skip to content
Toutes les missions
Veille marché · Dev-to Nouvelle Publiée 5 hours ago

How to Pull Pflegefachfrau Job Listings from jobs.ch into Python with Jobs.ch and Jobup.ch Scraper

By the end of this tutorial you will have a Python script that pulls Swiss job ads from jobs.ch into structured rows: job title, employer, place, workload range, publication dates and a link...

Entreprise least one entry in
Mode this guide is

Résumé

By the end of this tutorial you will have a Python script that pulls Swiss job ads from jobs.ch into structured rows: job title, employer, place, workload range, publication dates and a link to each ad. The search in this guide is Pflegefachfrau, a German job title. The sample rows below are copied, without edits, from one run of 18 November 2026 that searched that term with a 10-row cap and returned 10 rows. Jobs.ch and Jobup.ch Scraper (reventadata/jobs-ch-scraper) is the Apify Actor I built for the two job boards of JobCloud. You give it one or more search terms, and it returns one row per job ad. This guide runs it from Python with the Apify client. Prerequisites You need three things. Python 3.11 or newer, which is the minimum the Apify Python client states in its quick-start. A free Apify account, with an API token from it. Install the client with pip install -U "apify-client~=3.0". Set the token in an environment variable named APIFY_API_TOKEN so it never appears in your script. No coding beyond the script below is needed. What you'll achieve You will end with a printed list of job ads for one search, one line per ad, and with the full row for each ad in the run's dataset. Each row carries the title, the employer, the place, the workload range, the dates and a link to the ad. You can save the list to a file, sort it by publication date, or run the search again with another term and compare the two lists. The Actor reads public pages on jobs.ch and jobup.ch, so the search needs no login. In the run behind this guide, the 10 rows carried 7 different employers and 6 places, and every title was in German. Step-by-step: run it from Python Step 1: Describe the search The input is a JSON object. These are the fields this guide uses, with the values the schema gives: searchQueries is a list of search terms. It is required. Entries with no text are dropped, and a list with no text in any entry fails the run with an input message. site is both, jobs.ch or jobup.ch. With both, the input description says jobs.ch is searched first, and a job on both boards is returned once. maxItems caps the rows across all sites and terms. The schema default is 100. publicationDate is any, 1 (last day) or 7 (last 7 days). sortBy is relevance or date (newest first). fetchDetails is false by default. Set it to true and each row also carries the full description, the work hours and the address. The schema says runs are slower with it on. Any other value in an enumerated field, for example site set to jobs.de, is refused before the run starts. Step 2: Run the Actor Save this as jobs_ch_search.py and run it with python3 jobs_ch_search.py: import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_API_TOKEN"]) run_input = { "searchQueries": ["Pflegefachfrau"], "site": "both", "maxItems": 10, "publicationDate": "any", "sortBy": "relevance", "fetchDetails": False, } run = client.actor("reventadata/jobs-ch-scraper").call(run_input=run_input) if run is None: raise SystemExit("The run did not return a run object.") print("Status:", run.status) dataset = client.dataset(run.default_dataset_id) for job in dataset.iterate_items(): print(job["publishedAt"][:10], job["title"], "|", job["companyName"], "|", job["place"]) The call waits for the run to finish and then returns its run object. The script reads the rows from the run's default dataset. Step 3: Read the output Each row is one job ad. This is the first row of the run, copied without edits: { "id": "0197595f-1611-4971-ad6a-0ae7974247ee", "title": "Pflegefachfrau / Pflegefachmann", "companyName": "Kantonsspital Winterthur", "companyId": "3792", "companySlug": "3792-kantonsspital-winterthur", "companyLogoUrl": "https://media.jobs.ch/images/6dc9c3b3-8e08-4a74-a575-131a84cbe6aa/248x88.png", "place": "Winterthur", "locations": [ { "city": "Winterthur", "canton": null, "postalCode": "8401", "street": null, "countryCode": "CH", "latitude": null, "longitude": null } ], "publishedAt": "2026-11-13T06:16:48+01:00", "firstPublishedAt": "2026-11-13T06:16:48+01:00", "workloadMinPercent": 80, "workloadMaxPercent": 100, "employmentTypeIds": [ "5" ], "employmentPositionIds": [ 3 ], "isSponsored": false, "isNew": false, "quickApply": false, "easyApply": false, "benefits": [], "salaryCurrency": null, "salaryUnit": null, "salaryMin": null, "salaryMax": null, "site": "jobs.ch", "url": "https://www.jobs.ch/en/vacancies/detail/0197595f-1611-4971-ad6a-0ae7974247ee/", "matchedKeyword": "Pflegefachfrau", "searchUrl": "https://www.jobs.ch/en/vacancies/?term=Pflegefachfrau&page=1", "salarySource": null, "scrapedAt": "2026-11-18T07:19:12+00:00" } Understanding your results Most fields are plain. id is the job's identifier, and url links to its ad. title, companyName and place are the text the ad carries. publishedAt and firstPublishedAt are publication times with a time zone. workloadMinPercent and workloadMaxPercent give the workload range in percent, so 80 and 100 mean 80 to 100 per cent. locations is a list, because an ad can name more than one place. Each entry has a city, a canton, a postal code, a street and coordinates. In this run, canton is empty on 4 of the 10 rows, street is empty on 4 rows and the coordinates are empty on 6 rows. employmentTypeIds and employmentPositionIds hold the site's numeric ids. The Actor does not map them to labels, so 5 stays 5. Nine rows carry employment type 5 alone, and one carries 1 and 5. The salary fields are empty on all 10 rows: salaryMin, salaryMax, salaryCurrency, salaryUnit and salarySource. benefits is an empty list on all 10 rows, and quickApply, easyApply and isSponsored are false on all 10. matchedKeyword shows which search term found the row, and site shows the board. All 10 rows have site set to jobs.ch. Pro tips Put several terms in searchQueries when you want one list for related jobs. A job that two terms find is returned once, so the list has no duplicates. Store the id of each row, because the Actor removes repeats by that id within a run. Set publicationDate to 7 to keep only the ads of the last 7 days, or to 1 for the last day. Set maxItems to a small number while you test the script, then raise it. The cap counts rows across all sites and all terms, and with site set to both the schema says jobs.ch is searched first. Use employmentGradeMin to keep only jobs whose workload reaches a minimum percentage, for example 80. Leave it empty and no minimum applies. Use location with a place name as typed in the site search. Turn on fetchDetails only when you need the full description. The schema says it makes runs slower. Troubleshooting If every entry in searchQueries is empty, the run fails, and its status message names the input problem. Check that at least one entry in searchQueries has text. An enumerated value outside its list, such as a sortBy of newest, is refused before the run starts. The fix is to use one of the values the schema lists. If a search matches nothing, the run ends as succeeded with a status message and no rows. Remove the filters, such as location or the publication window, and run the search again. Read the run's status message first, because it is the place the Actor states the outcome. Next steps Run the script with a second term, or add a second term to searchQueries, and compare the two lists. The input fields are described in the Actor's README on its Store page. For current pricing and details, see the Store page. What search terms would you run first? Drop a comment below.