diff --git a/tests/test_cdx_api.py b/tests/test_cdx_api.py index 7829722..9748b9f 100644 --- a/tests/test_cdx_api.py +++ b/tests/test_cdx_api.py @@ -177,6 +177,7 @@ def test_near() -> None: ) cdx.near(unix_timestamp=1286705410) + def test_before() -> None: user_agent = ( "Mozilla/5.0 (MacBook Air; M1 Mac OS X 11_4) " @@ -210,4 +211,4 @@ def test_after() -> None: assert "20160801000917" in after.timestamp, after.timestamp assert "google" in after.urlkey assert after.original.find("google.com") != -1 - assert after.archive_url.find("google.com") != -1 \ No newline at end of file + assert after.archive_url.find("google.com") != -1 diff --git a/waybackpy/cdx_api.py b/waybackpy/cdx_api.py index 02cb683..4bd8291 100644 --- a/waybackpy/cdx_api.py +++ b/waybackpy/cdx_api.py @@ -230,7 +230,7 @@ class WaybackMachineCDXServerAPI: + "Either there are no archives before the given date," + " the URL may not have any archived, or the URL may have been" + " recently archived and is still not available on the CDX server." - ) + ) def after( self, @@ -271,7 +271,7 @@ class WaybackMachineCDXServerAPI: + "Either there are no archives after the given date," + " the URL may not have any archives, or the URL may have been" + " recently archived and is still not available on the CDX server." - ) + ) def near( self,