請教是否有其他指令,可以讓此網頁變成TXT
本帖最後由 jmsdhn 於 2023-5-3 19:43 編輯打擾了!
這網頁若用下述指令
curl https://docs.vmware.com/en/VMwar ... se-notes/index.html
會出現
You don't have permission to access "http://........
一長串訊息
請教是否有其他指令
可以讓此網頁變成TXT
感謝指教!
加上 -A "",掛個瀏覽器 useragent 就可以囉
先說結論
可以下載到想要的數據!
curl -a --user-agent aaa https://docs.vmware.com/en/VMware-Workstation-Pro/17.0.2/rn/vmware-workstation-1702-pro-release-notes/index.html
或者
curl --user-agent aaa https://docs.vmware.com/en/VMware-Workstation-Pro/17.0.2/rn/vmware-workstation-1702-pro-release-notes/index.html
都可以
比對的結果不完全相同
但以個人的資質
也看不出它的差異在說甚麼ㄏㄏ
curl真好用呢!
開關好多
光-A以下也有好多參數
只是有需要的才會注意到ㄎㄎ
感謝大大的教學!
頁:
[1]