Skip to content

5.1.0

Latest

Choose a tag to compare

@bitdruid bitdruid released this 04 Oct 18:38

Full Changelog: 4.2.0...5.1.0

Jobs from earlier versions (4.x, or 5.0.0 from PyPI) are migrated automatically
and can be resumed - no --reset needed. Downloaded files are unaffected.

Fixed

  • --last/--first picked wrong capture: www, https, :80 and trailing-dot variants of a url were grouped as separate files. (#61)
  • --last/--first picked wrong capture when both /page and /page.html exist: once /page is detected as html, both write page.html and the first one processed won. Now the newest/oldest is kept. (#62)
  • Path traversal: .. in a query string could escape the output directory. Now encoded.
  • --reset and the cleanup without --keep deleted the whole .db, including other jobs. Now only the job's own rows are removed.
  • Job lookup compared a variable to itself, matching any existing job.
  • Library: a second job in the same process could be reported as "resuming".

Changed

  • New Url class derives dedup key and output path from one parse - root cause of #59, #60, #61.
  • New url_key column stores that path; the mode filter groups by it.
  • One database holds several jobs: queries are scoped by job_id, url_archive is unique per job.
  • Indexes lead with job_id.
  • New migration.py updates old databases in one transaction. To be dropped in a later major version.
  • url_split() and normalize_domain() removed from helper - use Url.
  • Library API: Database.init() takes merge_www and reset, new Database.drop_job(), and several classes accept a job_id.

Notes

  • CSV output unchanged.
  • Known issue: jobs on the same url with different query parameters (--range, --filetype, ...) share one .cdx. Use separate --metadata folders for now.
  • README: new section on fair use of archive.org.