api_db.api_db#

Module Contents#

class api_db.api_db.AAApiDb#

Bases: auto_archiver.core.Database

Connects to auto-archiver-api instance

fetch(item: auto_archiver.core.Metadata) auto_archiver.core.Metadata | bool#

query the database for the existence of this item. Helps avoid re-archiving the same URL multiple times.

done(item: auto_archiver.core.Metadata, cached: bool = False) None#

archival result ready - should be saved to DB