From cb9a396736359d3b3e72911bde1ab413596ce5c4 Mon Sep 17 00:00:00 2001 From: Akash Mahanty Date: Fri, 16 Oct 2020 20:59:25 +0530 Subject: [PATCH] Update README.md --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 71afd0c..057e4cd 100644 --- a/README.md +++ b/README.md @@ -326,6 +326,15 @@ https://web.archive.org/web/20200719062108/https://en.wikipedia.org/wiki/Social_ Try this out in your browser @ +#### Get archive URL + +```bash +$ waybackpy --url "https://en.wikipedia.org/wiki/SpaceX" --user_agent "my-unique-user-agent" --archive_url +https://web.archive.org/web/20040803000845/http://en.wikipedia.org:80/wiki/SpaceX +``` + +Try this out in your browser @ + #### Oldest archive ```bash @@ -344,6 +353,20 @@ https://web.archive.org/web/20200606044708/https://en.wikipedia.org/wiki/YouTube Try this out in your browser @ +#### Get JSON data of avaialblity API + +```bash +$ waybackpy --url "https://en.wikipedia.org/wiki/SpaceX" --user_agent "my-unique-user-agent" --json + +``` + +```javascript +{'archived_snapshots': {'closest': {'timestamp': '20201007132458', 'status': '200', 'available': True, 'url': 'http://web.archive.org/web/20201007132458/https://en.wikipedia.org/wiki/SpaceX'}}, 'url': 'https://en.wikipedia.org/wiki/SpaceX'} + +``` + +Try this out in your browser @ + #### Total number of archives ```bash