From 95010938a7c00b9fb423d13bfed54c00bdc4c323 Mon Sep 17 00:00:00 2001 From: Akash <64683866+akamhy@users.noreply.github.com> Date: Sat, 18 Jul 2020 08:28:04 +0530 Subject: [PATCH] Update README.md --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 28afc3b..3af0f68 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ This should print an URL similar to the following archived URL: import waybackpy # retrieving the oldest archive on Wayback machine. # Default user_agent is "waybackpy python package". -target_url = waybackpy.Url("https://www.google.com/", user_agnet="My-cool-user-agent") +target_url = waybackpy.Url("https://www.google.com/", "My-cool-user-agent") oldest_archive = target_url.oldest() print(oldest_archive) ``` @@ -82,19 +82,18 @@ This returns the oldest available archive for . #### Receiving the newest archive for an URL using newest() - -> url is mandatory. UA is not, but highly recommended. - ```python import waybackpy # retrieving the newest archive on Wayback machine. # Default user-agent (UA) is "waybackpy python package", if not specified in the call. -newest_archive = waybackpy.newest("https://www.microsoft.com/en-us", UA = "Any-User-Agent") +target_url = waybackpy.Url(url="https://www.google.com/", user_agnet="My-cool-user-agent") +newest_archive = target_url.newest() print(newest_archive) ``` This returns the newest available archive for , something just like this: - +> + #### Receiving archive close to a specified year, month, day, hour, and minute using near()