Why wget ignores query string in the url?

后端 未结 3 1803
萌比男神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:16

    1. Store your list of URLs in a file (each URL in a separate line!!):

      echo "http://www.ted.com/talks/quick-list?sort=date&order=desc&page=18 http://www.ted.com/talks/quick-list?sort=date&order=desc&page=17 ... " > wget_filelist.txt

    2. Call wget to retrieve the stuff:

      wget -i wget_filelist.txt

提交回复
热议问题