From 398fa496bc6720454ae52fc1baaf5ccf1958c104 Mon Sep 17 00:00:00 2001 From: Akash <64683866+akamhy@users.noreply.github.com> Date: Sun, 19 Jul 2020 15:21:30 +0530 Subject: [PATCH] replit demo for newest() --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 25c42ea..9a36d86 100644 --- a/README.md +++ b/README.md @@ -87,13 +87,15 @@ http://web.archive.org/web/19981111184551/http://google.com:80/ ```python import waybackpy # retrieving the newest/latest archive on Wayback machine. -target_url = waybackpy.Url(url="https://www.google.com/", user_agent="My-cool-user-agent") +target_url = waybackpy.Url(url="https://www.facebook.com/", user_agent="My-cool-user-agent") newest_archive = target_url.newest() print(newest_archive) ``` -This print the newest available archive for , something just like this: +```bash +https://web.archive.org/web/20200714013225/https://www.facebook.com/ +``` +Try this out in your browser @ -> #### Receiving archive close to a specified year, month, day, hour, and minute using near()