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:
parent
d3bb8337a1
commit
d13dd4db1a
@ -2,9 +2,19 @@ from .save_api import WaybackMachineSaveAPI
|
|||||||
from .availability_api import WaybackMachineAvailabilityAPI
|
from .availability_api import WaybackMachineAvailabilityAPI
|
||||||
from .cdx_api import WaybackMachineCDXServerAPI
|
from .cdx_api import WaybackMachineCDXServerAPI
|
||||||
from .utils import DEFAULT_USER_AGENT
|
from .utils import DEFAULT_USER_AGENT
|
||||||
from .exceptions import WaybackError
|
|
||||||
from datetime import datetime, timedelta
|
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:
|
class Url:
|
||||||
def __init__(self, url, user_agent=DEFAULT_USER_AGENT):
|
def __init__(self, url, user_agent=DEFAULT_USER_AGENT):
|
||||||
|
Loading…
Reference in New Issue
Block a user