Aller au contenu
Toutes les missions
Veille marché · Dev-to Nouvelle Publiée il y a 19 heures

How to Pull Python Jobs from JobScout24 with JobScout24 Jobs Scraper

By the end of this tutorial you will have a Python script that pulls job listings from JobScout24, the Swiss job board, into structured rows. Each row holds the job title, the company, how o...

Entreprise most
Mode Sur site

Résumé

By the end of this tutorial you will have a Python script that pulls job listings from JobScout24, the Swiss job board, into structured rows. Each row holds the job title, the company, how old the posting is and its tags. With one switch you can also add the full job description and the position details. JobScout24 Jobs Scraper (reventadata/jobscout24-scraper) is the Apify Actor built for this site. You give it one or more keywords, such as python, and it returns one row per job. This guide calls it from Python with the Apify client. The Actor is not affiliated with JobScout24. It reads public pages, the same ones a browser shows, and it needs no login. Prerequisites You need three things: Python 3, with the Apify client installed. A free Apify account. Your Apify API token, from your Apify account. Install the client and export the token: pip install -U "apify-client~=3.0" export APIFY_API_TOKEN="your_apify_token_here" No scraping code is needed on your side. The Actor does the page reading for you. What you'll achieve You will search JobScout24 for python, read the rows in Python and print two lines per job. The first line holds the title and the company. The second holds the posting age and the tags. The first line is the one to scan, because the employer sits there. To search for something else, change the keyword in the script and nothing else. Each row also carries the keyword that found it and the search page it came from, so a run with several keywords stays easy to sort afterwards by company or keyword. Step 1: Open JobScout24 Jobs Scraper Open the Actor's page on the Apify Store. This tutorial calls the Actor from Python, so the name reventadata/jobscout24-scraper is all you need from that page. Step 2: Choose the search The inputs you need: searchQueries: a list of keywords, one search each. Required. maxItems: the most jobs to save in one run. The default is 25. fetchDetails: when on, each job's own page is read too, and the row gets a detail object with the description, the posting date, the industry, the postal code and the employment details. It is off by default and makes the run slower. The site serves at most 100 result pages of 20 jobs for one search, so about 2,000 jobs. A keyword with more matches than that is covered only in part, and the run log says so. For more jobs, use several narrower keywords. The example in this guide uses a small input, so one run stays short: { "searchQueries": ["python"], "maxItems": 25, "fetchDetails": false } Step 3: Run it from Python This script starts the Actor, waits for it, reads the dataset and prints two lines per job: import os from apify_client import ApifyClient # 1. Initialise the client with your token from the environment client = ApifyClient(os.environ["APIFY_API_TOKEN"]) # 2. Describe the search: Python jobs, up to 25 rows run_input = { "searchQueries": ["python"], "maxItems": 25, "fetchDetails": False, } # 3. Start the Actor and wait for it to finish run = client.actor("reventadata/jobscout24-scraper").call(run_input=run_input) if run is None or run.status != "SUCCEEDED": status = run.status if run else "unknown" raise SystemExit(f"Run did not succeed (status: {status}).") # 4. Read the rows from the run's default dataset items = client.dataset(run.default_dataset_id).list_items().items print(f"Retrieved {len(items)} jobs.\n") # 5. Print two lines per job for item in items: company = item.get("company") or "employer not shown" location = item.get("location") or "location not shown" print(f"{item['title']} at {company}, {location}") print(f" posted: {item.get('postedText')}, tags: {', '.join(item.get('tags') or [])}") Step 4: Read the output Each row is a JSON object. This is one row from a run on 1 December 2026 with fetchDetails off: { "id": "44b0f1d4-fed0-49d3-b2c2-9f721164eb83", "url": "https://www.jobscout24.ch/en/job/44b0f1d4-fed0-49d3-b2c2-9f721164eb83/", "title": "Python Developer", "company": "Summit Recruitment AG", "location": null, "postedText": "2 years ago", "tags": [ "100%", "Permanent" ], "isTopListing": false, "searchQuery": "python", "searchUrl": "https://www.jobscout24.ch/en/jobs/?term=python", "scrapedAt": "2026-12-01T08:13:48+00:00" } The script in Step 3 prints only the card fields. With fetchDetails off, the row has no detail key. Understanding your results The fields fall into three groups: Identity: id is the job id on the site, and url is the job page. The Actor uses the id to skip a job it has already saved in the same run. Listing fields: title, company, location, postedText, tags and isTopListing come from the search results page. location is null on every search row in this version. postedText is the age as the site shows it, such as "5 days ago" or "3 months ago". isTopListing is true for a paid top listing. Run fields: searchQuery is the keyword that found the job first, searchUrl is the results page it came from, and scrapedAt is the time the row was read, in ISO 8601 format. The company field is null when the listing leaves the employer out. The script above prints "employer not shown" in that case, and "location not shown" on every line, because location is null on every row in this version. A gap shows up as a visible gap in your output rather than a made-up value. Pro tips and advanced usage Keep maxItems small while you test. The run stops once that many rows are saved, so a small number finishes quickly and shows you the row shape before you collect a long list. Use several keywords when one search is too broad. The Actor reads each keyword in turn, and a job that two keywords find is saved once. Each row's searchQuery then tells you which keyword found it, so you can see which search brought in which jobs. Turn fetchDetails on only when you need the description or the position details. The description is the longest field in a row, and the run takes longer with it on. Leave it off for a quick list of titles and employers. Read the run status before you read the rows. A run that ends FAILED may have missed matches, so its rows are not a complete list, however tidy they look. Troubleshooting common issues The script prints "Run did not succeed". Open the run in the Apify Console and read its log. A run that ends FAILED is one the site refused, or one that got no usable input; its rows are not a full result. A search returns zero rows. The run ends SUCCEEDED with a status message that says nothing matched. Try a shorter or more common keyword, such as python rather than a long phrase. The count is lower than you expected. Check the run log for a note that a search had more matches than the site serves. A keyword with more than about 2,000 matches is covered only in part, so split it into narrower keywords. A field is null. The listing did not carry that field. Null is the honest value; the Actor does not guess. Next steps You now have a script that searches JobScout24 for a keyword, waits for the run, checks its status and prints each job. You know the inputs, the limit of about 2,000 jobs per keyword, and the fields in each row. Next, try a second keyword with the same script and compare the two outputs. Save the rows to a file with the Actor's dataset export if you want to sort them in a spreadsheet. For current pricing and details, see the Store page. About the author: reventadata builds and publishes data extraction Actors on the Apify Store.