From cc75a7e1775f863fda831848cb9dc7f0e5fcd5cc Mon Sep 17 00:00:00 2001 From: Akash <64683866+akamhy@users.noreply.github.com> Date: Sat, 18 Jul 2020 08:24:37 +0530 Subject: [PATCH] Update README.md --- README.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ce3afe4..4d2d8f2 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ print(archived_url) ``` This should print an URL similar to the following archived URL: - +> #### Receiving the oldest archive for an URL Using oldest() @@ -77,22 +77,18 @@ This should print an URL similar to the following archived URL: ```python import waybackpy # retrieving the oldest archive on Wayback machine. -# Default user-agent (UA) is "waybackpy python package", if not specified in the call. +# Default user_agent is "waybackpy python package". oldest_archive = waybackpy.oldest("https://www.google.com/", UA = "Any-User-Agent") print(oldest_archive) ``` This returns the oldest available archive for . - +> #### Receiving the newest archive for an URL using newest() -```diff -+ waybackpy.newest(url, UA=user_agent) -``` > url is mandatory. UA is not, but highly recommended. - ```python import waybackpy # retrieving the newest archive on Wayback machine.