Skip to content

Commit

Permalink
chrome UA in example usage / fix UA in readme and bin
Browse files Browse the repository at this point in the history
  • Loading branch information
cyber01 committed Nov 6, 2020
1 parent e8c78cc commit 8ed636f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ It will download the last version of every file present on Wayback Machine to `.
-p, --maximum-snapshot NUMBER Maximum snapshot pages to consider (Default is 100)
Count an average of 150,000 snapshots per page
-l, --list Only list file urls in a JSON format with the archived timestamps, won't download anything
-u, --user-agent STRING UserAgent for connection (Default is WayBack Machine Downloader)
-u, --user-agent STRING UserAgent for connection (Default is Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0)
## Specify directory to save files to

Expand Down Expand Up @@ -180,11 +180,11 @@ Example:

-u, --user-agent STRING

UserAgent for connection (Default is WayBack Machine Downloader)
UserAgent for connection (Default is Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0)

Example:

wayback_machine_downloader http://example.com --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:77.0) Gecko/20190101 Firefox/77.0"
wayback_machine_downloader http://example.com --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"

## Using the Docker image

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

opts.on("-u", "--user-agent STRING", String, "UserAgent for connection (Default is WayBack Machine Downloader)") do |t|
opts.on("-u", "--user-agent STRING", String, "UserAgent for connection (Default is Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0)") do |t|
options[:user_agent] = t
end

Expand Down

0 comments on commit 8ed636f

Please sign in to comment.