Skip to content

Commit

Permalink
Removed collapsible by timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
erlange committed Oct 28, 2019
1 parent 382f40b commit ed9b4ae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,18 +270,28 @@ wbm-dl yoursite.com -o c:/download -O "^.*\.(jpg|gif|png|)$"
This will download only image files of .jpg, .gif and .png types.
```
wbm-dl yoursite.com -o c:/download -O "^.*\b(themes|green).*\b$"
```
This will download files containing the word `themes` or `green` in the path.
## Excluding Specific Files
```
-X, --eXclude
```
Optional. In contrast with the `-O` parameter, you can exclude specific files using `-X` parameter. This parameter needs a string or a regex.
### Examples
```
wbm-dl yoursite.com -o c:/download -X "^.*\.(jpg|gif|png|)$"
```
This will not download image files of .jpg, .gif and .png types.
```
wbm-dl yoursite.com -o c:/download -X "^.*\b(themes|green).*\b$"
```
This will exclude the files containing the word `themes` or `green` in the path.
## Download All HTTP Status Codes
```
Expand Down
5 changes: 5 additions & 0 deletions WaybackDownloader.NET.CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ static string BuildOptions(Options opts)
if (!String.IsNullOrWhiteSpace(opts.ExcludeFilter))
resultUrl = builder.ToString() + "&filter=!original:" + opts.ExcludeFilter;

//resultUrl = builder.ToString() + "&collapse=timestamp:" + opts.Collapse.ToString();

}

return resultUrl;
Expand Down Expand Up @@ -652,6 +654,9 @@ class Options
[Option('t',"to", HelpText = "To timestamp. Limits the archived result UNTIL this timestamps. \nUse 1 to 14 digit with the format: yyyyMMddhhmmss \nIf omitted, retrieves results until the latest timestamp available. ")]
public string To { get; set; }

[Option(shortName: 'C', longName: "Collapse", Default = 14,HelpText = "Collapse by timestamp's number of digit", Hidden = true)]
public int Collapse { get; set; }

[Option('l', "limit", HelpText = "Limits the first N or the last N results. Negative number limits the last N results.")]
public string Limit { get; set; }

Expand Down

0 comments on commit ed9b4ae

Please sign in to comment.