Skip to content

Commit 8ed636f

Browse files
committed
chrome UA in example usage / fix UA in readme and bin
1 parent e8c78cc commit 8ed636f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ It will download the last version of every file present on Wayback Machine to `.
4747
-p, --maximum-snapshot NUMBER Maximum snapshot pages to consider (Default is 100)
4848
Count an average of 150,000 snapshots per page
4949
-l, --list Only list file urls in a JSON format with the archived timestamps, won't download anything
50-
-u, --user-agent STRING UserAgent for connection (Default is WayBack Machine Downloader)
50+
-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)
5151
5252
## Specify directory to save files to
5353

@@ -180,11 +180,11 @@ Example:
180180

181181
-u, --user-agent STRING
182182

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

185185
Example:
186186

187-
wayback_machine_downloader http://example.com --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:77.0) Gecko/20190101 Firefox/77.0"
187+
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"
188188

189189
## Using the Docker image
190190

bin/wayback_machine_downloader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ option_parser = OptionParser.new do |opts|
5858
options[:list] = true
5959
end
6060

61-
opts.on("-u", "--user-agent STRING", String, "UserAgent for connection (Default is WayBack Machine Downloader)") do |t|
61+
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|
6262
options[:user_agent] = t
6363
end
6464

0 commit comments

Comments
 (0)