wget 下載網頁 src="//..." - Linux

Cara avatar
By Cara
at 2018-08-31T22:32

Table of Contents

如題

用 wget 下載的網頁含有圖片

網址:
https://www.mobile01.com/newsdetail/26682/eric-bike

圖片:
src="//attach.mobile01.com/attach/201808/mobile01-abfe7e57cf816f7fb5fdcf08d1e98b34.jpg"

假設原始碼為 src="//image.jpg"

wget 遇到這樣的連結都無動於衷,

導致下載的網頁不完整。


請問有沒有解決辦法,感激不盡!

--
Tags: Linux

All Comments

Noah avatar
By Noah
at 2018-09-01T19:37
下載的命令完整參數是 ?
Adele avatar
By Adele
at 2018-09-06T05:25
wget -HpkKE url
Catherine avatar
By Catherine
at 2018-09-07T19:07
找到 manual 中 --convert-file-only 有寫
Frederic avatar
By Frederic
at 2018-09-07T23:23
The rest of the URL has been left untouched,
including the net path ("//") which would otherwise
be processed by Wget and converted to the effective
scheme (ie. "http://").
Damian avatar
By Damian
at 2018-09-12T20:17
可是下載的檔案裡還是 src="//... 啊 ><"
Audriana avatar
By Audriana
at 2018-09-14T00:21
試試看 -m 或 -r
Bennie avatar
By Bennie
at 2018-09-15T18:47
結果還是一樣:wget -HpkKE -r -l 1 url
Sierra Rose avatar
By Sierra Rose
at 2018-09-20T00:47
你要從瀏覽器的角度去思考,看到 // 瀏覽器會自動把 // 轉
成跟當前頁面一樣協定
Madame avatar
By Madame
at 2018-09-22T05:09
比方說你網頁在 https://,當下頁面的 src="//開頭網址"
就會被當成 src="https://兩斜線後面都一樣" 處理
Eartha avatar
By Eartha
at 2018-09-25T13:36
用 --convert-links

透過ssh echo含雙引號的內容到檔案

Hedy avatar
By Hedy
at 2018-08-29T19:43
請問如果我想新增到其他台的檔案內容如下 p1=and#34;abcand#34;, p2=and#34;cdfand#34; 雙引號及空格都要保留,透過ssh來操作 我試過 ssh hostname1 and#34;echo \and#34;p1=\and#34;abc\and#34; p2=\and ...

筆電蓋上上蓋無法喚醒

Hedwig avatar
By Hedwig
at 2018-08-29T17:00
※ 引述《Aruma ()》之銘言: : ※ 引述《Aruma ()》之銘言: : : 最近剛噴了asus UX410U : : 剛把HDD拆掉 換成原本裝有Ubuntu18.04的SSD : : 想請問在UEFI內要怎麼建立Ubuntu的boot呢?? : Ubuntu 更新後已經自己建立grub了 : ...

常用工具處理

Queena avatar
By Queena
at 2018-08-29T11:30
最近在Ubuntu上需要頻繁使用從github上下載下來的工具 於是就想說能不能丟到某處讓環境變數吃得到 目前嘗試過/usr/share以及/usr/sbin等地方 但只有單一檔案的程式能成功 如果是整個資料夾的就不知道怎麼處理了 把全部東西都倒進這些目錄底下好像也不太理想 不知道各位大大有沒有什麼處理的辦法 ...

shell script 問題

Hazel avatar
By Hazel
at 2018-08-28T21:53
最近被指派到一項工作 我想用 script 來完成 因為我需要執行一個程式 這個程式會慢慢吐現在執行的結果 我必須根據最後的結果做不同的處理 例如在script內: file=`ls -l` 可以取得檔名 但執行這個script時畫面 當時的畫面並不會也顯示ls的結果.. 請問有方法可以讓我在file ...

Linux環境下如何建立NetFlow

Kumar avatar
By Kumar
at 2018-08-28T19:49
各位大大好: 想請問是否能在ubuntu 16.04桌面版安裝Netflow? 還有不太會架設netflow的環境, 已有上網找尋相關資料, 但仍然不知道如何下手, 不知道各位是否可提供建議或網站參考, 或者能夠快速建立netflow的使用方式, 謝謝! - ...