From d13dd4db1a83b3247f73e05ba3a4ea9aa0a3801a Mon Sep 17 00:00:00 2001 From: Akash Mahanty Date: Fri, 21 Jan 2022 23:14:20 +0530 Subject: [PATCH] added notice on waybackpy/wrapper.py that the Url class will cease to exist after 2024-01-01 and also removed unused imports. --- waybackpy/wrapper.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/waybackpy/wrapper.py b/waybackpy/wrapper.py index 574ad04..f492c50 100644 --- a/waybackpy/wrapper.py +++ b/waybackpy/wrapper.py @@ -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):