Skip to main content

Ethical Avature career-site scraper with robots.txt checks, output caching, and progressive fetch fallbacks.

Project description

aventure-scraper

Ethical, robots.txt-first CLI for Avature-hosted career sites. It is meant as a reference implementation: polite delays, incremental JSON cache, progressive fetch (HTTP → headless Chromium → headful Chromium), and explicit legal gates on disallowed URLs.

Features

Area Behavior
Robots Fetches and honors robots.txt before each host; disallowed URLs require a typed legal acknowledgement to proceed.
Cache --output / -o JSON is both the final report and the resume cache (no separate --resume).
Fetch ladder requests → Playwright headless → Playwright headful, with an interactive “press Enter to continue” step between tiers when the previous tier did not yield usable job HTML.
Job rows Default columns: id, title, description, location, url. Optional JobDataPool-style fields via flags or --all.
Field gates When optional columns are requested, missing values on an early tier force escalation to the next fetch method (same UX as non-job HTML). After headful, a best-effort inference pass may fill gaps and sets needs_manual_review on the row.
CSV + JobPool By default, writes a JobPool-shaped CSV next to --output (<stem>.csv) when there is at least one job, and POSTs listings to jobpool.live scrape-cache. Disable the POST with --no-upload-to-jobpool.

Install

From the repo (editable):

cd avature_scraper_src
pip install -e ".[dev]"

For Playwright fallbacks:

pip install -e ".[browser]"
python -m playwright install chromium

Basic run

aventure-scraper https://company.avature.net/careers --output jobs.json

Pin explicit job detail URLs (repeatable):

aventure-scraper https://company.avature.net/careers \
  --job-url "https://company.avature.net/careers/JobDetail/Example-Role/12345" \
  --output jobs.json

Output JSON

Each saved job includes at least:

  • id — Requisition-style id from the URL/body when possible; otherwise a stable url-<sha256-prefix> derived from the normalized listing URL.
  • title, description (full cleaned visible text, capped for cache size; see description_truncated), location, url.
  • needs_manual_review — Set when headful inference or ingest-date substitution was used; such rows are not dropped by the heuristic bogus filter on cache write.
  • data_quality_warnings — Short operator-facing notes.

The report also includes output_fields: the column names implied by your CLI flags (defaults only, or the full JobDataPool-style list when using --all).

Optional column flags (JobDataPool-shaped)

These turn on extraction + completion checks for the matching columns (missing values on requests/headless cause escalation to the next tier, same as garbage-page detection):

Flag Affects
--skills skills
--ingestion-date job_posted_date (page) plus runtime ingest_utc_date / ingest_utc_hour; after headful, posted date may be copied from ingest with a warning.
--education-requirements education_requirements
--company-name company_name

--all (JobDataPool export mode)

--all is shorthand for enabling all of the flags above and expanding output_fields to the full JobDataPool-style column set defined in code (JOBDATAPOOL_OUTPUT_FIELDS in models.py), suitable for CSV export toward jobdatapool.com / JobPool pipelines.

aventure-scraper https://company.avature.net/careers --all --output jobs.json

CSV export and JobPool upload

Default behavior: if the run produced at least one job, the tool writes {output-stem}.csv beside your JSON report (UTF-8 BOM, JobPool-shaped headers) and POSTs the listing payload to https://jobpool.live/api/scrape-cache (override with JOBPOOL_SCRAPE_CACHE_URL). The POST body is JSON listing objects, not the raw CSV file.

The CSV uses headers compatible with the public scrape cache (REQUIRED_FIELDS in the livejobpool Netlify function), including source_observed_utc and record_lifecycle_state (left blank here; the API normalizes them).

Skip only the network upload (still write the default CSV when there are jobs):

aventure-scraper https://company.avature.net/careers --output jobs.json --no-upload-to-jobpool

Custom CSV path (upload still on unless you add --no-upload-to-jobpool):

aventure-scraper https://company.avature.net/careers --output jobs.json --csv-out ./out/listings.csv

Environment variables

Variable Purpose
JOBPOOL_SCRAPE_CACHE_URL Override API URL (default https://jobpool.live/api/scrape-cache).
LIVEJOBPOOL_ROOT Absolute path to your livejobpool clone. When set, each upload payload is also appended as one JSON line to {LIVEJOBPOOL_ROOT}/.aventure-scraper-cache/<user>.jsonl for a local audit trail keyed by the resolved user name.

Example (Windows PowerShell):

$env:LIVEJOBPOOL_ROOT = "C:\Users\you\Projects\livejobpool"
aventure-scraper https://company.avature.net/careers --output jobs.json

Who is user_name on the wire?

The cache API expects user_name for leaderboards. Resolution order:

  1. --jobpool-user if you passed it
  2. git config github.user
  3. GitHub handle parsed from git config remote.origin.url (or upstream) when it looks like git@github.com:handle/repo.git or https://github.com/handle/repo
  4. Slugified git config user.name
  5. OS login (getpass.getuser())
  6. Machine hostname

Output cache behavior (JSON)

If --output already exists, you get a small TTY selector: continue from cache or overwrite. The JSON is written incrementally after discovery and after each successful job fetch.

Raw landing HTML is not kept in the cache file on disk (only enough for discovery resume).

Legal gate

If robots.txt disallows a URL, the tool stops unless you type the exact acknowledgement phrase shown in the UI. This is deliberate friction; the tool does not provide legal advice.

Development

pip install -e ".[dev]"
pytest tests/ -q
ruff check src tests

Related projects

  • jobpool.live — transparency layer and public scrape-cache API used above.
  • jobdatapool.com — schema / interchange expectations for job rows.
  • livejobpool — Netlify site + cache-scraped-listings function backing the cache.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

avature_scraper-0.0.1.tar.gz (38.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

avature_scraper-0.0.1-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

Details for the file avature_scraper-0.0.1.tar.gz.

File metadata

  • Download URL: avature_scraper-0.0.1.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for avature_scraper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 461528ffe37c6fb6491ce84263fa7350c85637fe1c5c0e7817625465bfbb133a
MD5 3d4eae9cf84eff3c3b9c1bb6ea63a68f
BLAKE2b-256 feafd7227cd8b65c6f375a3f9d83a77e2968f6420b3bb43e601933bde0791bfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for avature_scraper-0.0.1.tar.gz:

Publisher: publish-pypi.yml on lramos0/avature-scraper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file avature_scraper-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for avature_scraper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99a45737188e0b5da71c12d18016b4b46e8e8809332661b92f9bb94827b4baef
MD5 65b2b9e6bf51a297354fddf66d6bd607
BLAKE2b-256 f8f2db15f546dee583f9c7df7787dfb1565fa2325c4bb7701ad02c18b1e4251c

See more details on using hashes here.

Provenance

The following attestation bundles were made for avature_scraper-0.0.1-py3-none-any.whl:

Publisher: publish-pypi.yml on lramos0/avature-scraper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page