From 1861715a9e784342e4e68f0b79a9fe2f7721acde Mon Sep 17 00:00:00 2001 From: Akash <64683866+akamhy@users.noreply.github.com> Date: Wed, 22 Jul 2020 21:21:25 +0530 Subject: [PATCH] get bash example --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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)