【问题标题】:Using same download works with browser but not wget or curl使用相同的下载适用于浏览器,但不适用于 wget 或 curl
【发布时间】:2020-08-16 04:06:28
【问题描述】:

我正在尝试从 Google 中找到的 link 下载图像。在浏览器中使用Save Image As.. 时,图像已成功下载,但以下之一:

wget -O image.jpeg https://images.pexels.com/photos/531880/pexels-photo-531880.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500
# or
curl -L https://images.pexels.com/photos/531880/pexels-photo-531880.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500 -o 

给出与希伯来语非常相似的输出...

使用终端工具下载同一张图片的正确方法是什么?

【问题讨论】:

    标签: linux image curl wget


    【解决方案1】:

    解决方案是用单引号引用 URL(像往常一样:))

    【讨论】:

      猜你喜欢
      • 2011-12-10
      • 1970-01-01
      • 1970-01-01
      • 2016-04-12
      • 1970-01-01
      • 1970-01-01
      • 2017-05-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多