Why wget ignores query string in the url?

后端 未结 3 1762
萌比男神i
萌比男神i 2021-02-06 23:10

I want to use wget to download the following 18 html files:

http://www.ted.com/talks/quick-list?sort=date&order=desc&page=18  
http://www.ted.com/talks/q         


        
3条回答
  •  难免孤独
    2021-02-06 23:30

    & is a special character in most shell environments, you can use double quotes to quote the URL to pass the whole thing in as the parameter to wget:

    wget "http://www.ted.com/talks/quick-list?sort=date&order=desc&page=18"
    

提交回复
热议问题