最新消息:20210917 已从crifan.com换到crifan.org

【已解决】如何用wget一次性批量下载多个url保存到各自的文件

下载 crifan 696浏览 0评论
折腾:
【未解决】批量测试安卓游戏:ViVo的Game的搜魔幻且是即时战斗类的游戏20201201
期间,有多个apk的url:
https://gameapkbddl.vivo.com.cn/appstore/developer/soft/20200826/202008261201146981358.apk
https://gameapktxdl.vivo.com.cn/appstore/developer/soft/20201116/202011161438165zt7s.apk
https://bigswsdl.vivo.com.cn/appstore/developer/soft/20200928/20200928201620523qp.apk
打算用wget批量去一次性下载多个文件,且分别各自保存到对应的文件
wget multiple urls
windows – How to download multiple urls using wget using a single command? – Stack Overflow
wget URL1 URL2
或:
$ cat list.txt
http://www.vodafone.de/privat/tarife/red-smartphone-tarife.html
http://www.verizonwireless.com/smartphones-2.shtml
http://www.att.com/shop/wireless/devices/smartphones.html
用:
wget -E -H -k -K -p -e robots=off -P /Downloads/ -i ./list.txt
还是去试试第一个:
wget https://gameapkbddl.vivo.com.cn/appstore/developer/soft/20200826/202008261201146981358.apk https://gameapktxdl.vivo.com.cn/appstore/developer/soft/20201116/202011161438165zt7s.apk https://bigswsdl.vivo.com.cn/appstore/developer/soft/20200928/20200928201620523qp.apk https://gameapkbddl.vivo.com.cn/appstore/developer/soft/20201021/202010211210259xe41.apk https://bigswsdl.vivo.com.cn/appstore/developer/soft/20201127/2020112718284323ws7.apk https://gameapktxdl.vivo.com.cn/appstore/developer/soft/20201015/202010151615128gfxv.apk https://gameapktxdl.vivo.com.cn/appstore/developer/soft/20201109/202011091712414955g.apk https://bigswsdl.vivo.com.cn/appstore/developer/soft/20200803/202008031416598320600.apk https://gameapk.vivo.com.cn/appstore/developer/soft/20200812/202008121906221124275.apk https://gameapktxdl.vivo.com.cn/appstore/developer/soft/20201110/202011101841405op9t.apk
效果是:
分别 单个 挨个 去下载:
--2020-11-30 16:47:41--  https://gameapkbddl.vivo.com.cn/appstore/developer/soft/20200826/202008261201146981358.apk
正在解析主机 gameapkbddl.vivo.com.cn (gameapkbddl.vivo.com.cn)... 61.164.248.212
正在连接 gameapkbddl.vivo.com.cn (gameapkbddl.vivo.com.cn)|61.164.248.212|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:386850137 (369M) [application/vnd.android.package-archive]
正在保存至: “202008261201146981358.apk”


202008261201146981358.apk          19%[==========>                                                  ]  70.12M  1.80MB/s  剩余 2m 49s
那就继续等待吧。
继续下载了第二个:
对应已下载文件:
最后下载完毕:
2020-11-30 17:58:08 (1.44 MB/s) - 已保存 “202011101841405op9t.apk” [151235361/151235361])


下载完毕 --2020-11-30 17:58:08--
总用时:1h 10m 28s
下载了:10 个文件,1h 10m 26s (1.60 MB/s) 中的 6.6G
对应文件:
 ~/Downloads/pre_download  ll -lh
total 13992872
-rw-r--r--  1 xxx  CORP\Domain Users   1.9G  8  3 14:18 202008031416598320600.apk
-rw-r--r--  1 xxx  CORP\Domain Users   121M  8 12 19:06 202008121906221124275.apk
-rw-r--r--  1 xxx  CORP\Domain Users   369M  8 26 12:01 202008261201146981358.apk
-rw-r--r--  1 xxx  CORP\Domain Users   945M  9 28 20:16 20200928201620523qp.apk
-rw-r--r--  1 xxx  CORP\Domain Users   742M 10 15 16:15 202010151615128gfxv.apk
-rw-r--r--  1 xxx  CORP\Domain Users    95M 10 21 12:10 202010211210259xe41.apk
-rw-r--r--  1 xxx  CORP\Domain Users   505M 11  9 17:12 202011091712414955g.apk
-rw-r--r--  1 xxx  CORP\Domain Users   144M 11 10 18:41 202011101841405op9t.apk
-rw-r--r--  1 xxx  CORP\Domain Users   1.1G 11 16 14:38 202011161438165zt7s.apk
-rw-r--r--  1 xxx  CORP\Domain Users   784M 11 27 18:28 2020112718284323ws7.apk
即可。
【总结】
用wget一次性下载多个url,分别保存到各自文件,用法:
wget url1 url2 url3
即可。

转载请注明:在路上 » 【已解决】如何用wget一次性批量下载多个url保存到各自的文件

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
93 queries in 0.191 seconds, using 23.44MB memory