don't fetch more pages if >=2 pages are empty

This commit is contained in:
Akash Mahanty
2021-01-11 22:43:14 +05:30
parent 5a7bd73565
commit eabf4dc046
3 changed files with 25 additions and 10 deletions

View File

@@ -166,7 +166,15 @@ class Url:
return response.content.decode(encoding.replace("text/html", "UTF-8", 1))
def near(self, year=None, month=None, day=None, hour=None, minute=None, unix_timestamp=None):
def near(
self,
year=None,
month=None,
day=None,
hour=None,
minute=None,
unix_timestamp=None,
):
"""
Wayback Machine can have many archives of a webpage,
sometimes we want archive close to a specific time.