diff --git a/README.md b/README.md index 7f3465a..580d441 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ Table of contents * [Newest archive](#newest-archive) * [Total archives](#total-number-of-archives) * [Archive near a time](#archive-near-time) + * [Get the source code](#get-the-source-code) * [Tests](#tests) @@ -263,6 +264,15 @@ https://web.archive.org/web/20120512142515/https://www.facebook.com/ ``` Try this out in your browser @ +#### Get the source code +```bash +$ waybackpy --url google.com --user_agent "my-unique-user-agent" --get url # Prints the source code of the url +$ waybackpy --url google.com --user_agent "my-unique-user-agent" --get oldest # Prints the source code of the oldest archive +$ waybackpy --url google.com --user_agent "my-unique-user-agent" --get newest # Prints the source code of the newest archive +$ waybackpy --url google.com --user_agent "my-unique-user-agent" --get save # Save a new archive on wayback machine then print the source code of this archive. +``` +Try this out in your browser @ + ## Tests * [Here](https://github.com/akamhy/waybackpy/tree/master/tests)