Repository navigation
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--resetneeded. Downloaded files are unaffected.
Fixed
--last/--firstpicked wrong capture: www, https,:80and trailing-dot variants of a url were grouped as separate files. (#61)--last/--firstpicked wrong capture when both/pageand/page.htmlexist: once/pageis detected as html, both writepage.htmland 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. --resetand the cleanup without--keepdeleted 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
Urlclass derives dedup key and output path from one parse - root cause of #59, #60, #61. - New
url_keycolumn stores that path; the mode filter groups by it. - One database holds several jobs: queries are scoped by
job_id,url_archiveis unique per job. - Indexes lead with
job_id. - New
migration.pyupdates old databases in one transaction. To be dropped in a later major version. url_split()andnormalize_domain()removed fromhelper- useUrl.- Library API:
Database.init()takesmerge_wwwandreset, newDatabase.drop_job(), and several classes accept ajob_id.
Notes
- CSV output unchanged.
- Known issue: jobs on the same url with different query parameters (
--range,--filetype, ...) share one.cdx. Use separate--metadatafolders for now. - README: new section on fair use of archive.org.