From a8604f5aa0468a9ae4507171dfa3617fed57d758 Mon Sep 17 00:00:00 2001 From: Akash <64683866+akamhy@users.noreply.github.com> Date: Sat, 18 Jul 2020 08:26:17 +0530 Subject: [PATCH] Update README.md --- README.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4d2d8f2..28afc3b 100644 --- a/README.md +++ b/README.md @@ -66,25 +66,21 @@ This should print an URL similar to the following archived URL: > + #### Receiving the oldest archive for an URL Using oldest() - -```diff -+ waybackpy.oldest(url, UA=user_agent) -``` -> url is mandatory. UA is not, but highly recommended. - - ```python import waybackpy # retrieving the oldest archive on Wayback machine. # Default user_agent is "waybackpy python package". -oldest_archive = waybackpy.oldest("https://www.google.com/", UA = "Any-User-Agent") +target_url = waybackpy.Url("https://www.google.com/", user_agnet="My-cool-user-agent") +oldest_archive = target_url.oldest() print(oldest_archive) ``` 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.