wget 不行curl行? [論壇 - Ubuntu 程式設計]
正在瀏覽:
1 名遊客
wget 不行curl行? |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員四級
![]() ![]() 註冊日期:
2011/7/29 14:20 所屬群組:
已註冊使用者 等級: 18
HP : 0 / 446
![]() |
url='http://58.30.207.171/youku/69764FC8BC2447992487A2488/030002010051001478A6FA0109ACBF22B0F614-2746-1AE5-C9EF-2266A1CC83DB.flv'
curl $url -o test1.flv #可以下载 wget -c $url -O test2.flv #不可以下载 请问,wget有无办法也下载?
2013/1/24 11:47
|
||||||||||
![]() |
回覆: wget 不行curl行? |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
Wget - The non-interactive network downloader
沒有看到 url 使用變數 但是 可以從 一個檔案讀出 url 試試看 參數 -i file --input-file=file Read URLs from a local or external file. If - is specified as file, URLs are read from the standard input. (Use ./- to read from a file literally named -.) If this function is used, no URLs need be present on the command line. If there are URLs both on the command line and in an input file, those on the command lines will be the first ones to be retrieved. If --force-html is not specified, then file should consist of a series of URLs, one per line. However, if you specify --force-html, the document will be regarded as html. In that case you may have problems with relative links, which you can solve either by adding "<base href="url">" to the documents or by specifying --base=url on the command line. If the file is an external one, the document will be automatically treated as html if the Content-Type matches text/html. Furthermore, the file's location will be implicitly used as base href if none was specified.
2013/1/24 12:31
|
||||||||||
![]() |
回覆: wget 不行curl行? |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員三級
![]() ![]() 註冊日期:
2011/11/13 1:05 所屬群組:
已註冊使用者 等級: 12
HP : 0 / 294
![]() |
這個站有一點點保護措施,
叫wget偽裝成瀏覽器就能下載了。 wget -c -U "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)" -O test2.flv "$url"
2013/1/24 13:16
|
||||||||||
![]() |
您可以查看帖子.
您不可發帖.
您不可回覆.
您不可編輯自己的帖子.
您不可刪除自己的帖子.
您不可發起投票調查.
您不可在投票調查中投票.
您不可上傳附件.
您不可不經審核直接發帖.