added notice on waybackpy/wrapper.py that the Url class will cease to exist after 2024-01-01 and also removed unused imports.

This commit is contained in:
Akash Mahanty 2022-01-21 23:14:20 +05:30
parent d3bb8337a1
commit d13dd4db1a

View File

@ -2,9 +2,19 @@ from .save_api import WaybackMachineSaveAPI
from .availability_api import WaybackMachineAvailabilityAPI
from .cdx_api import WaybackMachineCDXServerAPI
from .utils import DEFAULT_USER_AGENT
from .exceptions import WaybackError
from datetime import datetime, timedelta
"""
The class Url is not recommended to be used anymore, instead use the
WaybackMachineSaveAPI, WaybackMachineAvailabilityAPI and WaybackMachineCDXServerAPI
classes.
The only reason it is still in the code is just backwards compatibility.
If you are using the Url class, you can later probably update the code as this
class should probably be deleted after after 2024-01-01.
"""
class Url:
def __init__(self, url, user_agent=DEFAULT_USER_AGENT):