【问题标题】:wget wont download zip fileswget不会下载zip文件
【发布时间】:2021-05-24 21:29:25
【问题描述】:

wget

我一直在尝试从网站本地下载所有 .zip 文件,wget 似乎可以获取除我真正想要的 .zip 文件之外的所有内容;

例如

% wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains example.org --no-parent https://data.binance.vision/?prefix=data/spot/monthly/trades/1INCHBTC/

这会将单个 html 文件下载到本地“data.binance.vision”目录中。

% s data.binance.vision/
index.html@prefix=data%2Fspot%2Fmonthly%2Ftrades%2F1INCHBTC%2F.html

有人可以帮忙吗?我愿意使用任何可以为我在本地下载文件的实用程序(curl?)。

【问题讨论】:

    标签: curl wget


    【解决方案1】:

    这个

    wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains example.org --no-parent https://data.binance.vision/?prefix=data/spot/monthly/trades/1INCHBTC/
    

    命令原样仅限于example.org 域(--domains example.org),这可能解释了为什么它拒绝下载除 url 指向的页面以外的任何内容。请尝试使用与站点对应的正确--domains,即binance.vision

    【讨论】:

      猜你喜欢
      • 2017-04-21
      • 1970-01-01
      • 1970-01-01
      • 2019-02-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多