diff --git a/README.md b/README.md index 8b9111e..b76a829 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,72 @@ returns : ```diff + waybackpy.get(url, encoding="UTF-8", UA=user_agent) ``` +> encoding is automatically detected if not supplied in the call. +```python +from waybackpy import get +# retriving the webpage from any url including the archived urls. Don't need to import other libraies :) +# Default user-agent (UA) is "waybackpy python package", if not specified in the call. +# supported argumnets are url, encoding and UA +webpage = get("https://example.com/", UA="User-Agent") +print(webpage) +``` +
Output of the above code +

+ +###### The source code for ! As no encoding was provided, it was auto identified. + +```html + + + + Example Domain + + + + + + + + +

+

Example Domain

+

This domain is for use in illustrative examples in documents. You may use this + domain in literature without prior coordination or asking for permission.

+

More information...

+
+ + +``` + +

+
+ ## License