跳至主要內容

[linux] wget 基本用法

wget –no-check-certificate –user-agent=”Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0″ https://tw.yahoo.com –header=”Accept: application/json”
若有加參數 需在 雙引號
wget –output-document=output –no-check-certificate –user-agent=”Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0″ –header=”Accept: application/json” “http://www.google.com/search?q=asdf”
–header
–output-document
–user-agent
–no-check-certificate
reference: https://stackoverflow.com/questions/17182553/sites-not-accepting-wget-user-agent-header/34166756

分類:linux
由 Compete Themes 設計的 Author 佈景主題