DEV Community

Cover image for How to Pull eFinancialCareers Jobs into Python with Apify
ReventaData
ReventaData

Posted on Originally published at apify.com

How to Pull eFinancialCareers Jobs into Python with Apify

A finance job board lists many openings for one keyword, one results page at a time. To keep the title, employer and location of each opening in a spreadsheet you copy them by hand. This tutorial replaces that with a short Python script. It runs one keyword on eFinancialCareers and returns one row per job.

The tool is the eFinancialCareers Scraper Actor (reventadata/efinancialcareers-scraper). You call it from Python with the official apify-client package. The Actor reads public pages and needs no login. It is not affiliated with eFinancialCareers.

By the end you will have a script that runs one search, saves the rows to a JSON file and turns them into a CSV file.


Prerequisites

  1. Python 3.11 or newer.
  2. The Apify API client for Python:
pip install -U "apify-client~=3.0"
Enter fullscreen mode Exit fullscreen mode
  1. An Apify account and your personal API token, set as an environment variable:
export APIFY_API_TOKEN="your_apify_token_here"
Enter fullscreen mode Exit fullscreen mode

The Actor needs no login. The token is only for the call from your script.


What you'll achieve

Each row is one job from the eFinancialCareers public job search. The fields are:

  • id: the identifier published by the site.
  • title: the job title as published.
  • company: the employer published by the site. It can be empty.
  • location: the job location text as published. It can be empty.
  • salary: the salary text as published. It can be empty.
  • posted: the posting age as published, for example 1 month ago. It can be empty.
  • url: the public job page URL.
  • matchedQuery: the keyword that found the item.
  • scrapedAt: an ISO 8601 timestamp of when the row was stored.

Example use case: search a keyword such as analyst and keep the title, employer and location of each job in a file, then run the same search another day and compare the two files by scrapedAt.


Step 1: Open the Actor

Open the eFinancialCareers Scraper page on the Apify Store to read its description. This guide calls the Actor from Python, so the ID you need is reventadata/efinancialcareers-scraper.


Step 2: Set the inputs

Field Type What it does
query string Required. A public job keyword, for example analyst.
maxItems integer Maximum number of results to save to the dataset. Minimum 1. Default 25.

query decides what is searched. maxItems decides when the Actor stops saving rows. A small value such as 10 is a good first test, because you can read every row.


Step 3: Run it from Python

import json
import os

from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_API_TOKEN"])

run_input = {"query": "analyst", "maxItems": 10}

run = client.actor("reventadata/efinancialcareers-scraper").call(run_input=run_input)
if run is None:
    raise SystemExit("The run did not start.")

print("Run status:", run.status)
items = client.dataset(run.default_dataset_id).list_items().items

for item in items:
    print(item["title"], "|", item.get("company"), "|", item.get("location"), "|", item.get("salary"), "|", item.get("url"))

with open("efinancialcareers-analyst-rows.json", "w", encoding="utf-8") as f:
    json.dump(items, f, indent=2, ensure_ascii=False)
Enter fullscreen mode Exit fullscreen mode

The call method starts the Actor and waits for it to finish. The run object has a status and the ID of the dataset that stores the rows. list_items().items returns the rows as a list of dictionaries. The loop prints one line per job and the last lines save every row to efinancialcareers-analyst-rows.json.

If the run did not start, call returns nothing, and the script stops with a message instead of failing later on an empty value. The loop reads company, location and salary with get because a row can have them empty.


Step 4: Read one row

The three rows below are the first three of the example run of 2026-11-27 (input {"query": "analyst", "maxItems": 10}, 10 rows in total). They are shown whole and unedited.

[
  {
    "id": "uZCnyyHnux7264dG",
    "title": "Analyst",
    "company": "FanDuel",
    "location": "New York, United States",
    "salary": "Competitive",
    "posted": "1 month ago",
    "url": "https://www.efinancialcareers.com/jobs-United_States-NY-New_York-Analyst.id24928099",
    "matchedQuery": "analyst",
    "scrapedAt": "2026-11-27T17:36:40.474596+00:00"
  },
  {
    "id": "01M4pCeyL2ZVJmQe",
    "title": "Analyst",
    "company": "Fortress Investment Group LLC",
    "location": "Dallas, United States",
    "salary": "Competitive",
    "posted": "2 months ago",
    "url": "https://www.efinancialcareers.com/jobs-United_States-TX-Dallas-Analyst.id24852364",
    "matchedQuery": "analyst",
    "scrapedAt": "2026-11-27T17:36:40.474596+00:00"
  },
  {
    "id": "QgM2SLLpWDMG0N28",
    "title": "Analyst",
    "company": "ICF International, Inc.",
    "location": "London, United Kingdom",
    "salary": "Competitive",
    "posted": "6 days ago",
    "url": "https://www.efinancialcareers.com/jobs-UK-London-Analyst.id25021215",
    "matchedQuery": "analyst",
    "scrapedAt": "2026-11-27T17:36:40.474596+00:00"
  }
]
Enter fullscreen mode Exit fullscreen mode

Notes on the fields:

  • salary is text exactly as the site published it. In all three example rows it is Competitive, a word and not a number, so do not parse it as an amount.
  • posted is relative text such as 6 days ago. Read it together with scrapedAt, because the same text means a different date on another day.
  • matchedQuery repeats the keyword you searched.
  • scrapedAt is a UTC timestamp. Every row of one run carries the same value in the example above.
  • id identifies the job, and url links to its page on the site.

Understanding your results

A row is a copy of what the site shows on one job card: a title, an employer, a location, a salary text, a posting age and a link. Nothing in the row is calculated by the Actor. That has two consequences.

First, salary and posted are strings. In the example rows salary holds the word Competitive and posted holds relative texts such as 1 month ago, 2 months ago and 6 days ago. If you want to filter or sort on them, decide in your own code how to treat each text shape, and keep the original text in one column next to anything you derive from it, so you can always see what the site published.

Second, a row only holds what the card published. company, location, salary and posted can be empty (null), so code that must not stop on a missing value should read them with item.get("name").


Pro tips and advanced usage

  • Save a CSV. The second script reads the JSON file back and writes a CSV with the columns you choose:
import csv
import json

with open("efinancialcareers-analyst-rows.json", encoding="utf-8") as f:
    items = json.load(f)

columns = ["id", "title", "company", "location", "salary", "posted", "matchedQuery", "scrapedAt", "url"]
with open("efinancialcareers-analyst-rows.csv", "w", newline="", encoding="utf-8") as f:
    writer = csv.DictWriter(f, fieldnames=columns)
    writer.writeheader()
    for item in items:
        writer.writerow({name: item.get(name) for name in columns})
Enter fullscreen mode Exit fullscreen mode
  • Keep one file per day. Put the date in the file name and compare files later with scrapedAt.
  • Try several keywords. Run the script once per keyword. matchedQuery tells you which keyword produced each row when you merge the files.
  • Start small. Keep maxItems low until the first rows look right, then raise it.
  • Check a link by hand. Open a few url values in a browser and compare the title and the employer with the row, now and then.
  • Dedupe on id. A job can appear under two keywords when you merge files, so key merged data by id.

Limits to know

  • One keyword is read per run, and one results page is read per search. That page held up to 15 job cards when measured on 2026-11-27, so a maxItems above 15 does not return more rows.
  • A keyword with no public results stores no rows.
  • query is required and can be at most 120 characters. maxItems must be 1 or more, and defaults to 25.
  • Only fields the site publishes are returned. Nothing sits behind a login.
  • The same id is stored once per run.

Troubleshooting common issues

  • The run stops with a message and no rows: check that query is not empty and is within 120 characters, and that maxItems is at least 1.
  • The run succeeds with no rows: the keyword had no public results. Try a broader keyword.
  • The run fails with a message about the site: the site refused the run. Wait and run it again. The run log shows the message the Actor wrote.
  • A row shows an empty field: the site did not publish it. Read it with item.get("name") as shown above.
  • The status is not a success: read the run log in the Apify Console. The Actor writes the reason there.

Next steps

Run the script on a schedule with your own cron job or a scheduler, keep the files, and compare them across dates. Try other keywords. The Apify Python client documentation covers the rest of the client.

For current pricing and details, see the Store page.

About the author: reventadata builds and publishes data extraction Actors on the Apify Store.

Top comments (0)