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.