You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+62-62Lines changed: 62 additions & 62 deletions
Original file line number
Diff line number
Diff line change
@@ -21,18 +21,20 @@ type HistoryItem struct {
21
21
22
22
funcmain() {
23
23
url:=flag.String("url", "", "URL pattern to collect responses for")
24
-
dateFrom:=flag.String("from", "", "Date on which to start collecing responses. Inclusive. Format: yyyyMMddhhmmss. Defaults to first ever record.")
25
-
dateTo:=flag.String("to", "", "Date on which to end collecing responses. Inclusive. Format: yyyyMMddhhmmss. Defaults to last ever record.")
24
+
dateFrom:=flag.String("from", "", "Date on which to start collecing responses. Inclusive. Format: yyyyMMddhhmmss. Defaults to first ever record")
25
+
dateTo:=flag.String("to", "", "Date on which to end collecing responses. Inclusive. Format: yyyyMMddhhmmss. Defaults to last ever record")
26
26
limit:=flag.Int("limit", 0, "Limit the results")
27
27
filter:=flag.String("filter", "", "Filter your search, using the wayback cdx filters (find more here: https://github.com/internetarchive/wayback/tree/master/wayback-cdx-server#filtering)")
28
28
collapse:=flag.String("collapse", "", "A form of filtering, with which you can collaps adjasent fields(find more here: https://github.com/internetarchive/wayback/tree/master/wayback-cdx-server#collapsing)")
29
29
30
-
requestsPerSecond:=flag.Int("req-per-sec", 0, "Requests per second. 0 means no one request at a time")
31
-
estimateTime:=flag.Bool("time", false, "Show how much time it would take to make all requests for the current query")
30
+
requestsPerSecond:=flag.Int("req-per-sec", 1, "Requests per second. Defaults to 1")
31
+
estimateTime:=flag.Bool("time", false, "Show how much time it would take to make all requests for the current query and exit (without response time take into account)")
32
32
printUrls:=flag.Bool("print-urls", false, "Print to stdout only a list of historic URLs, which you can request later")
33
33
unique:=flag.Bool("unique", false, "Print to stdout only unique reponses")
34
-
output:=flag.String("output", "", "Path to a folder where the tool will safe all unique responses in uniquely named files per response")
35
-
logFile:=flag.String("log-file", "", "Log every wayback history request url, but not the response")
34
+
outputFolder:=flag.String("output-folder", "", "Path to a folder where the tool will safe all unique responses, in uniquely named files")
0 commit comments