Skip to content

Commit 31d1cc6

Browse files
committed
update readme
1 parent 94e49e4 commit 31d1cc6

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,46 @@ Download all snapshots and output a json response:<br>
8989
List available snapshots per timestamp without downloading and save a csv file to home folder:<br>
9090
`waybackup -u http://example.com -f -l --csv /home/user/Downloads`
9191

92+
### Json Response
93+
94+
For download queries:
95+
96+
```
97+
[
98+
{
99+
"file": "/your/path/waybackup_snapshots/example.com/yyyymmddhhmmss/index.html",
100+
"id": 1,
101+
"redirect_timestamp": "yyyymmddhhmmss",
102+
"redirect_url": "http://web.archive.org/web/yyyymmddhhmmssid_/http://example.com/",
103+
"response": 200,
104+
"timestamp": "yyyymmddhhmmss",
105+
"url_archive": "http://web.archive.org/web/yyyymmddhhmmssid_/http://example.com/",
106+
"url_origin": "http://example.com/"
107+
},
108+
...
109+
]
110+
```
111+
112+
For list queries:
113+
114+
```
115+
[
116+
{
117+
"digest": "DIGESTOFSNAPSHOT",
118+
"id": 1,
119+
"mimetype": "text/html",
120+
"status": "200",
121+
"timestamp": "yyyymmddhhmmss",
122+
"url": "http://example.com/"
123+
},
124+
...
125+
]
126+
```
127+
128+
## CSV Output
129+
130+
The csv contains the json response in a table format.
131+
92132
## Contributing
93133

94134
I'm always happy for some feature requests to improve the usability of this script.

0 commit comments

Comments
 (0)