
我剛剛發現我們可以透過以下連結看到Google街景圖片:
https://maps.googleapis.com/maps/api/streetview?size=640x640&location=38.3810257,-89.486167&heading=0
(其中標題是旋轉)。
我的問題是這樣的。如何從我的終端下載該映像?
我嘗試過:
wget https://maps.googleapis.com/maps/api/streetview?size=640x640&location=38.3810257,-89.486167&heading=0
但它創建了一個名為“wget-log”的文件,其內容顯示“錯誤 400:錯誤請求”。
謝謝
答案1
問題是我需要引用 url 因為 &:
wget "https://maps.googleapis.com/maps/api/streetview?size=640x640&location=38.3810257,-89.486167&heading=0" -O downloaded.jpg