Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Suggested-by: codespell, spellintian
  • Loading branch information
pabs3 committed May 3, 2021
1 parent bec41e0 commit ea15965
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ It will download the last version of every file present on Wayback Machine to `.
-x, --exclude EXCLUDE_FILTER Skip downloading of urls that match this filter
(use // notation for the filter to be treated as a regex)
-a, --all Expand downloading to error files (40x and 50x) and redirections (30x)
-c, --concurrency NUMBER Number of multiple files to dowload at a time
-c, --concurrency NUMBER Number of multiple files to download at a time
Default is one file at a time (ie. 20)
-p, --maximum-snapshot NUMBER Maximum snapshot pages to consider (Default is 100)
Count an average of 150,000 snapshots per page
Expand All @@ -62,7 +62,7 @@ Example:

-s, --all-timestamps

Optional. This option will download all timestamps/snapshots for a given website. It will uses the timepstamp of each snapshot as directory.
Optional. This option will download all timestamps/snapshots for a given website. It will uses the timestamp of each snapshot as directory.

Example:

Expand All @@ -89,7 +89,7 @@ Example:

-t, --to TIMESTAMP

Optional. You may want to supply a to timestamp to lock your backup to a specifc version of the website. Timestamps can be found inside the urls of the regular Wayback Machine website (e.g., https://web.archive.org/web/20100916231334/http:https://example.com). You can also use years (2010), years + month (201009), etc. It can be used in combination of From Timestamp.
Optional. You may want to supply a to timestamp to lock your backup to a specific version of the website. Timestamps can be found inside the urls of the regular Wayback Machine website (e.g., https://web.archive.org/web/20100916231334/http:https://example.com). You can also use years (2010), years + month (201009), etc. It can be used in combination of From Timestamp.
Wayback Machine Downloader will then fetch only file versions on or before the timestamp specified.

Example:
Expand Down Expand Up @@ -169,7 +169,7 @@ Example:

-c, --concurrency NUMBER

Optional. Specify the number of multiple files you want to download at the same time. Allows to speed up the download of a website significantly. Default is to download one file at a time.
Optional. Specify the number of multiple files you want to download at the same time. Allows one to speed up the download of a website significantly. Default is to download one file at a time.

Example:

Expand Down
2 changes: 1 addition & 1 deletion bin/wayback_machine_downloader
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ option_parser = OptionParser.new do |opts|
options[:all] = true
end

opts.on("-c", "--concurrency NUMBER", Integer, "Number of multiple files to dowload at a time", "Default is one file at a time (ie. 20)") do |t|
opts.on("-c", "--concurrency NUMBER", Integer, "Number of multiple files to download at a time", "Default is one file at a time (ie. 20)") do |t|
options[:threads_count] = t
end

Expand Down
2 changes: 1 addition & 1 deletion lib/wayback_machine_downloader/tidy_bytes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def tidy_bytes(force = false)
if is_unused || is_restricted
bytes[i] = tidy_byte(byte)
elsif is_cont
# Not expecting contination byte? Clean up. Otherwise, now expect one less.
# Not expecting continuation byte? Clean up. Otherwise, now expect one less.
conts_expected == 0 ? bytes[i] = tidy_byte(byte) : conts_expected -= 1
else
if conts_expected > 0
Expand Down

0 comments on commit ea15965

Please sign in to comment.