Cdx based oldest newest and near (#159)
* implement oldest newest and near methods in the cdx interface class, now cli uses the cdx methods instead of availablity api methods. * handle the closest parameter derivative methods more efficiently and also handle exceptions gracefully. * update test code
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user