CareerBuilder is one of the biggest US job boards. Every search page lists 20 jobs with the employer, city, pay range, work mode and posting date, and every job page holds the full description. For hiring-market research, pay benchmarks or lead lists of who is hiring where, that is a clean dataset. Here is how to pull it into Python.
Why plain requests fail
import requests
r = requests.get("https://www.careerbuilder.com/jobs-registered-nurse-in-denver,co")
print(r.status_code) # 403
print(r.text[:120]) # ... Please enable JS and disable any ad blocker ...
careerbuilder.com is protected by DataDome, which answers a script with 403 and a challenge from captcha-delivery.com instead of the page. Sending the request through Scrape.do returns the real server-rendered HTML. A plain request is enough, no extra parameters: 1 credit per page.
import csv
import json
import re
import requests
TOKEN = "<your_token>"
BASE = "https://www.careerbuilder.com"
def fetch(url):
r = requests.get("https://api.scrape.do/", params={"token": TOKEN, "url": url}, timeout=90)
r.raise_for_status()
return r.text
Step 1: find the data
CareerBuilder is a Next.js site. The jobs are not in the HTML cards you see; they are in a JSON blob the page ships for hydration, <script id="__NEXT_DATA__">. Parse it once and skip the markup:
def next_data(html):
raw = re.search(r'<script id="__NEXT_DATA__" type="application/json">(.*?)</script>', html, re.S).group(1)
return json.loads(raw)["props"]["pageProps"]
On a search page, pageProps.jobResultsData.jobResults holds the 20 jobs and estimatedTotalSize the total. On a job page (/job-details/...), pageProps.jobViewResultsData holds the full posting.
Step 2: the search URL
Search pages follow one pattern: /jobs-<title>-in-<city>,<state>, with ?page=N for the next 20. Drop the title for every job in a city (/jobs-in-denver,co) or the city for a nationwide search (/jobs-registered-nurse). These are CareerBuilder's popular search pages: common titles and every US city and state have one, an unusual title returns 404.
def slug(text):
return re.sub(r"[^a-z0-9]+", "-", text.lower()).strip("-")
def search(title, city, state, page=1):
url = f"{BASE}/jobs-{slug(title)}-in-{slug(city)},{state.lower()}"
data = next_data(fetch(url + (f"?page={page}" if page > 1 else "")))["jobResultsData"]
jobs = []
for item in data["jobResults"]:
post = item["jobPosting"]
addr = post["jobLocation"][0]["address"]
pay = (post.get("baseSalary") or item.get("normalizedJobPosting", {}).get("baseSalary") or {}).get("value", {})
jobs.append({
"title": post["title"],
"company": post["hiringOrganization"]["name"],
"city": addr.get("addressLocality", ""),
"state": addr.get("addressRegion", ""),
"pay_min": pay.get("minValue"),
"pay_max": pay.get("maxValue"),
"pay_period": pay.get("unitText", ""),
"work_mode": item.get("policyDecisions", {}).get("jobLocationTypeDecision", {}).get("result", ""),
"posted": post["datePosted"][:10],
"url": item["canonicalUrl"],
})
return jobs, data["estimatedTotalSize"]
Pay hides in two places: jobPosting.baseSalary when the employer sends it, normalizedJobPosting.baseSalary when CareerBuilder extracted it from the text. Read both.
Step 3: ten pages to CSV
rows = []
for page in range(1, 11):
jobs, total = search("Registered Nurse", "Denver", "CO", page)
rows += jobs
with open("denver_rn.csv", "w", newline="", encoding="utf-8") as fh:
writer = csv.DictWriter(fh, fieldnames=rows[0].keys())
writer.writeheader()
writer.writerows(rows)
print(len(rows), "of", total, "jobs")
A live run on registered nurse jobs in Denver: CareerBuilder showed 9,606 openings, and the first 10 pages gave 200 jobs for 10 credits. They came from 47 employers in 16 cities, from Denver (83) and Aurora (42) out to Longmont, and 191 were posted in November. 43 listed a pay range, but 41 of those had no pay period attached. Most were clearly hourly, with a median midpoint of $52.50 an hour; four were weekly travel-nurse rates around $2,400. 198 of the 200 sent applicants to the employer's own site.
Limits to know
- Pay periods are often missing. Keep the field empty rather than guessing; values under 200 are almost always hourly.
-
Only popular search pages exist.
/jobs-rust-developer-in-boise,idis a 404. Use a broader title or a city page. -
Order shifts between requests. Deduplicate on
jobIdwhen you crawl many pages.
Skip the code
The same scraper is an open-source package with a CLI:
pip install careerbuilder-scraper
export SCRAPEDO_TOKEN=<your_token>
careerbuilder-scraper "Registered Nurse" -l "Denver, CO" --pages 10 -f csv -o denver_rn.csv
careerbuilder-scraper "Data Engineer" -l "TX" --pages 3 --details -o tx_data.json
Source and tests: github.com/bugrahansss/careerbuilder-scraper
Use the data responsibly
Job postings are public business data, but respect CareerBuilder's terms, keep request rates reasonable and don't republish full descriptions as your own job board. Some postings carry a recruiter's email address; the package deliberately leaves it out.
Run it at scale with Scrape.do
Every page is one plain Scrape.do call: no proxy pool, no DataDome handling, no headless browser. Ten pages of a search cost ten credits. Get 1000 free credits and start scraping with Scrape.do.
Top comments (0)