# Complete Guide: How to Pull Pracuj.pl Job Offers Using Python

[Pracuj.pl](http://Pracuj.pl) is a Polish job board. Its search pages list offers with the title, the employer, the salary text and the work mode, but a page of cards is hard to sort, filter or join with other data. This guide shows how to read those search results into structured rows from Python. Each row keeps the salary text, the work mode and the contract types in their own columns, so you can compare offers without reading each card. The same code works for any keyword the site accepts.

[**Pracuj.pl**](http://Pracuj.pl) **Job Scraper** (`reventadata/pracuj-scraper`) is the Apify Actor for this site. You send it keywords and optionally a city, and it returns one row per workplace of each offer, read from public search pages with no login.

## TL;DR

Install `apify-client`, set your Apify API token in the environment, and call the Actor with a `searchQueries` list and, if you want, `onlyWithSalary`. Start with `maxPages` set to 1, because a small run shows you the field names before you commit to a larger one. Each returned row is a dictionary with the offer title, employer, salary text, work modes, contract types and workplace. The sample row in this guide comes from a search page that the Actor's README records on 2026-11-07, and its values are not edited.

---

## Prerequisites and setup

You need:

1. Python 3.11 or newer with `pip`.
2. A free **Apify account**. You can sign up with an email address or a GitHub login.
3. Your **API token**, found in the Apify Console under the integrations settings.

Install the client. The code in this guide uses the 3.x line:

```bash
pip install -U "apify-client~=3.0"
```

Set the token in your shell, so the script reads it from the environment and never contains it. A token written into a script is copied into every shared file that holds it, so keep it in the environment only:

```bash
export APIFY_API_TOKEN="your-token-here"
```

---

## Understanding [Pracuj.pl](http://Pracuj.pl) Job Scraper

The Actor takes the inputs below and returns one dataset item per workplace of each offer. An offer posted in several cities gives one item per city, and the items share a `groupId`.

| Input | What it does |
| --- | --- |
| `searchQueries` | Keywords, one search each. An empty list returns every offer on the site, bounded by `maxItems`. |
| `location` | An optional city as [Pracuj.pl](http://Pracuj.pl) writes it, for example `Warszawa` or `Kraków`. |
| `onlyWithSalary` | Keeps only offers that publish a salary. Default off. |
| `fetchDetails` | Opens each offer's own page for the structured salary per contract type, category and technologies. Default off. |
| `maxItems` | A hard cap on rows. The default is 1000. |
| `maxPages` | An optional cap on pages per keyword, with 50 postings on each page. |

The Actor reads public search pages directly, so it needs no browser of its own. Nothing it returns comes from behind a login. The employer name, the employer id, the profile link and the logo are the public data the search page shows.

---

## Step-by-step walkthrough

### Step 1: Open the Actor

Open the [Pracuj.pl Job Scraper page](https://apify.com/reventadata/pracuj-scraper) on Apify Store. The input form on that page matches the table above. You can run the Actor from the Apify Console or from Python, and the code below uses Python.

### Step 2: Choose the input

For a first test, keep the search small. The next block looks for `python` offers that publish a salary, returns ten rows and reads one page of results.

```python
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 offers with a salary, ten rows, one page
run_input = {
    "searchQueries": ["python"],
    "onlyWithSalary": True,
    "maxItems": 10,
    "maxPages": 1,
}

# 3. Start the Actor and wait for it to finish
run = client.actor("reventadata/pracuj-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)} rows.\n")

# 5. Print one line per row: title and employer, then salary text and workplace
for item in items:
    print(f"{item.get('title')} | {item.get('companyName')}")
    print(f"  salary: {item.get('salaryText')}, workplace: {item.get('workplace')}")
```

### Step 3: Run the Actor from Python

Save the block to a Python file in your project folder and run it:

```bash
python3 pracuj_search.py
```

The script waits for the run to end. If the status is not `SUCCEEDED`, it prints the status and stops, so a failed run never looks like an empty list.

### Step 4: Read one row

The sample below is one offer from the search page recorded on 2026-11-07, with the `fetchDetails` fields left off:

```json
{
  "id": "1005150403",
  "url": "https://www.pracuj.pl/praca/senior-backend-python-developer-warszawa-powazkowska-44c,oferta,1005150403",
  "groupId": "84100000-56be-0050-b929-08df25efce80",
  "title": "Senior Backend Python Developer",
  "companyName": "Fundacja Szkoła w Chmurze",
  "companyId": 1074109726,
  "publishedAt": "2026-10-11T22:00:00Z",
  "lastPublishedAt": "2026-11-07T16:00:00Z",
  "expiresAt": "2026-11-10T22:59:59Z",
  "salaryText": "17 000–25 000 zł / mies. (zal. od umowy)",
  "workModes": ["Praca zdalna"],
  "contractTypes": ["Umowa o pracę", "Kontrakt B2B"],
  "positionLevels": ["Starszy specjalista / Starsza specjalistka (senior)"],
  "workSchedules": ["Pełny etat"],
  "isRemoteWorkAllowed": true,
  "workplace": "Warszawa, Żoliborz",
  "latitude": 52.25871658325195,
  "longitude": 20.963115692138672,
  "workplacesInGroup": 1,
  "matchedKeyword": "python",
  "detailFetched": false
}
```

---

## Working with the API

The Python client is one way in. The Apify API can start the same run with the same JSON input, and the results can be read from the dataset of the finished run. Use the client when your script is in Python, and the API when another tool, such as a spreadsheet macro or a workflow engine, starts the run.

Check the run's `status` before you read its dataset, as the script above does. A run that ends as `SUCCEEDED` with zero items means that no offer matched the search. It does not mean the Actor failed, and a `FAILED` run returns no rows at all.

With `fetchDetails` on, each row also carries the offer-page fields. In a 2026-11-07 record of one offer, `salaryByContract` held a separate entry for each contract type. One entry was a gross monthly range under an employment contract, and the other a net-plus-VAT monthly range under a B2B contract. Each entry names its contract type, its currency, its period and its kind, so your code can read the numbers without parsing the free text.

---

## Advanced usage patterns

**Several keywords in one run.** Put more entries in `searchQueries`. Each entry is one search, and `matchedKeyword` records which keyword found each row.

**Salary-only lists.** Set `onlyWithSalary` to true for salary analysis. Without it, many offers carry a `null` salary, and you filter them out later in Python. The filter is the site's own salary filter, as the input description states.

**Structured salaries.** Turn on `fetchDetails` when you need a figure per contract type. The listing salary is free text that can mix contract types, so the structured field is the one to use for numbers. Expect the run to take longer, because the Actor opens each offer's own page.

**Grouping by offer.** Because an offer open in three cities gives three rows, group by `groupId` before you count offers. `workplacesInGroup` tells you how many rows the offer produced.

**Deadline-first sorting.** Parse `expiresAt` as a timestamp and sort. Offers that close soonest then come first. Keep the sorted list in a file with the run date in its name, so you can see how the set of open offers changes from one week to the next.

---

## Understanding your data

| Field group | Fields | Notes |
| --- | --- | --- |
| Identity | `id`, `url`, `groupId` | `id` is the offer number. `groupId` ties the rows of one offer together. |
| Employer | `companyName`, `companyId` | The employer as the search page shows it. |
| Dates | `publishedAt`, `lastPublishedAt`, `expiresAt` | UTC timestamps. |
| Pay | `salaryText`, `salaryByContract` | `salaryText` is free text. `salaryByContract` is filled only with `fetchDetails`. |
| Role | `positionLevels`, `workSchedules`, `contractTypes`, `workModes` | Lists, because an offer can carry several values in each. |
| Place | `workplace`, `latitude`, `longitude`, `workplacesInGroup` | Coordinates appear only when the offer gives them. |
| Search | `matchedKeyword`, `detailFetched` | The keyword that found the row, and whether the offer page was read. |

A field with no value is `null`. The `salaryText` of an offer that publishes no salary is `null`.

---

## Troubleshooting guide

**The run ends as** `FAILED`**.** The Actor ends with a status message when it cannot read the site. The script prints the status, and the run's log in the Apify Console has the message.

**The run succeeds with zero rows.** A search with no matches ends as `SUCCEEDED` and a message that says nothing matched. Check the keyword and the city spelling, because the city filter uses the site's own names.

**A city search returns offers for the whole country.** The site's city filter can also return offers marked as valid for all of Poland. Those rows carry the national marker, so filter on it if you want only the named city.

**Coordinates are missing.** Coordinates appear only when the offer gives them, and otherwise `latitude` and `longitude` are `null`. Check for `null` before you calculate a distance.

**The contact phone is empty.** The offer page carries a phone number only sometimes. In the 2026-11-10 test cited in the README, none of 20 offers had one.

---

## Best practices

- Keep `maxPages` small while you test, then raise it once the keyword returns the offers you expect.
- Store `id` with each row, and skip ids you already hold, so that repeated runs do not duplicate offers.
- Read `status` and the row count on every run, and alert when a scheduled run returns zero rows.
- Keep the token in an environment variable, never in the script.
- Pin the client to the 3.x line with `apify-client~=3.0`, so a future major release does not change the attributes your code reads.
- Keep the run date in the name of every saved file, so a list from one week can be compared with the next.
- Keep your own copy of the rows you need. A dataset records one run, and a later run of the same search can return a different set of offers.

For current pricing and details, see the [Store page](https://apify.com/reventadata/pracuj-scraper).

---

## Conclusion and next steps

You now have a script that starts [Pracuj.pl](http://Pracuj.pl) Job Scraper, checks the run status, and prints one pair of lines per row. Next, add a second keyword to `searchQueries`, change `location` to compare cities, or save the input as an Apify task and attach a schedule to it. Then read each new dataset from Python in the same way.

What would you track first? Share it in the comments.
