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] wget 基本用法
分類:linux