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

How to Scrape Profession.hu Jobs in Python with Profession Scraper

By the end of this tutorial you will have a Python script that searches Profession.hu, a Hungarian job portal, and reads the results into structured rows: job title, employer, location, cate...

Entreprise whichever cap it reaches first
Mode Sur site

Résumé

By the end of this tutorial you will have a Python script that searches Profession.hu, a Hungarian job portal, and reads the results into structured rows: job title, employer, location, category, employment type, experience level and a link to each advertisement. Profession Scraper (reventadata/profession-scraper) is the Apify Actor built for this site. You give it a search term, and it returns one row per job posting. This guide searches for "ápoló" (nurse) and runs the Actor from Python. The sample rows below come from a run dated 18 November 2026 and are copied from that run's dataset. Profession Scraper is an unofficial tool, not affiliated with Profession.hu. Each row is one job posting, and its position field keeps the order in which the site listed the postings. Prerequisites You need three things: Python 3 installed on your machine. A free Apify account, which you can create with an email address or a GitHub login. Your Apify API token, from your account settings in Apify Console. 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 fetching. What you'll achieve You will search Profession.hu for "ápoló", read the rows in Python and print one line per job posting. The same script works with any keyword the site's search accepts, such as a job title or a skill, and with a full search link copied from the site. Only the input changes. Each row says what the listing shows for that job. Some fields are empty on some listings, and the run used in this guide shows which ones. The output is a list of plain Python dictionaries, so you can sort, filter or count it with ordinary Python before you save it. To try a new keyword you change one string in the script, and nothing else. Step 1: Open Profession Scraper Open the Profession Scraper page on Apify Store. This tutorial calls the Actor from Python, so you only need its name, reventadata/profession-scraper. Step 2: Choose the search The search is described by a few input fields: searchQueries: a list of keywords, job titles or full profession.hu search links. Required. maxItems: the most rows to collect. The default is 100. maxPages: an optional limit on result pages per query. Each page holds up to 20 job postings. proxyConfiguration: an optional network setting, off by default. The Actor stops at whichever cap it reaches first, or at the last page of results. A posting that appears on more than one page, or under more than one keyword, is kept once, matched on its job ID. For this guide the input is a single keyword, ten rows at most and one page: { "searchQueries": ["ápoló"], "maxItems": 10, "maxPages": 1 } Step 3: Run it from Python This script starts the Actor, waits for it, reads the dataset and prints two lines per job posting: 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: nursing vacancies, ten rows, one results page run_input = { "searchQueries": ["ápoló"], "maxItems": 10, "maxPages": 1, } # 3. Start the Actor and wait for it to finish run = client.actor("reventadata/profession-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)} job postings.\n") # 5. Print two lines per job posting for item in items: print(f"{item.get('title')} | {item.get('company')} | {item.get('location')}") print(f" {item.get('employmentType')}, {item.get('experienceLevel')}, {item.get('salaryVariant')}") Step 4: Read the output Each row is one job posting. This is the first row of the run, copied from its dataset. The searchUrl field is left out of this sample; every row carries it. { "id": "3053176", "title": "Ápoló", "company": "Semmelweis Egyetem Belgyógyászati és Onkológiai Klinika", "location": "Pest megye, Budapest", "url": "https://www.profession.hu/allas/apolo-semmelweis-egyetem-belgyogyaszati-es-onkologiai-klinika-budapest-3053176", "category": "Szakmunka", "subcategory": "Ápoló, Egészségügyi szakmunka", "employmentType": "full time", "experienceLevel": "professional experience is not required", "salary": null, "salaryCurrency": null, "salaryVariant": "salary confidential", "datePosted": null, "position": 1, "searchQuery": "ápoló" } The script in Step 3 prints the title, employer and location on one line, and the employment type, experience level and salary label on the line under it. Those are the fields most readers scan first, and the rest of the row stays in the dataset for later use. Understanding your results Each field means this: id: the job's identifier on Profession.hu. The Actor uses it to avoid duplicates. title, company, location: the job title, the employer's name and the location as county and city. url: the link to the job advertisement. category, subcategory: the site's job categories for the posting. employmentType, experienceLevel: the employment type and the experience the listing asks for. salary, salaryCurrency: filled only when the listing shows a figure. salaryVariant: the salary label the listing carries, such as "salary confidential". datePosted: filled only when the listing carries a date. position: the listing's place in the results. searchQuery, searchUrl: the search that produced the row. In this run, salary, salaryCurrency and datePosted are empty on all 10 rows. salaryVariant reads "salary confidential" on all 10. Eight rows give "professional experience is not required" and two give "1-3 years experience". The 10 rows span seven counties, and three of them are in Pest megye. Pro tips Keep maxPages at 1 while you test. Each page holds up to 20 postings, so a small cap keeps the first runs short. Put several keywords in searchQueries to collect them in one run. A posting that matches more than one keyword is kept once. Start with one keyword. Keywords in one run share the maxItems cap, so the first keyword can use up the whole budget of rows before the others run. Check salary and datePosted before you filter on them. In this run both were empty on every row, so a filter that needs a value returns no rows from it. Read searchQuery on each row to see which keyword found it when you search with a list. Use maxItems to cap the number of rows you store. The Actor stops when it has pushed that many. Raise it only after the first run's rows look right. Troubleshooting The script prints "Run did not succeed". The run ended FAILED. The message in the run's log says why. A missing or blank searchQueries is an input problem and ends the run as FAILED. Zero rows, but the run succeeded. A search with no matches ends as SUCCEEDED with a status message and an empty dataset. The script then prints zero job postings. A keyword returns fewer rows than expected. The site's search decides which postings match the keyword. The Actor keeps every posting the search returns, so a narrower keyword gives fewer rows. Empty salary fields. This is what the listing shows. It is not an error, and the other fields stay filled. Next steps Run the script with a different keyword, then raise maxItems and maxPages once the rows look right. For scheduled runs, the Apify API client can start the Actor from any script you already run. Read the Actor's README for the full input list before you write a larger search. For current pricing and details, see the Store page. What search would you run first? Drop a comment below.