File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,46 @@ Download all snapshots and output a json response:<br>
89
89
List available snapshots per timestamp without downloading and save a csv file to home folder:<br >
90
90
` waybackup -u http://example.com -f -l --csv /home/user/Downloads `
91
91
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
+
92
132
## Contributing
93
133
94
134
I'm always happy for some feature requests to improve the usability of this script.
You can’t perform that action at this time.
0 commit comments