Skip to main content

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.

Metadata

Release files for avature-scraper 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for avature-scraper 0.0.1
File Size Uploaded Provenance
avature_scraper-0.0.1.tar.gz 38.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for avature-scraper 0.0.1
File Interpreter ABI Platform
avature_scraper-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 76.1 kB

Release files / avature_scraper-0.0.1.tar.gz

Download URL avature_scraper-0.0.1.tar.gz
Size 38.5 kB
Tags Source
SHA-256 checksum
How to use checksums
461528ffe37c6fb6491ce84263fa7350c85637fe1c5c0e7817625465bfbb133a
BLAKE2b-256 checksum
How to use checksums
feafd7227cd8b65c6f375a3f9d83a77e2968f6420b3bb43e601933bde0791bfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 4, 2026.

Transparency log

Release files / avature_scraper-0.0.1-py3-none-any.whl

Download URL avature_scraper-0.0.1-py3-none-any.whl
Size 37.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99a45737188e0b5da71c12d18016b4b46e8e8809332661b92f9bb94827b4baef
BLAKE2b-256 checksum
How to use checksums
f8f2db15f546dee583f9c7df7787dfb1565fa2325c4bb7701ad02c18b1e4251c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 4, 2026.

Transparency log

Security for avature-scraper 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for avature_scraper-0.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page