implement oldest newest and near methods in the cdx interface class, now cli uses the cdx methods instead of availablity api methods.

This commit is contained in:
Akash Mahanty
2022-02-18 11:38:58 +05:30
parent f990b93f8a
commit 407d95cc24
9 changed files with 211 additions and 107 deletions

View File

@@ -16,6 +16,14 @@ class WaybackError(Exception):
"""
class NoCDXRecordFound(WaybackError):
"""
No records returned by the CDX server for a query.
Raised when the user invokes near(), newest() or oldest() methods
and there are no archives.
"""
class BlockedSiteError(WaybackError):
"""
Raised when the archives for website/URLs that was excluded from Wayback