如何从zippyshare的bash下载? [英] How to download in bash from zippyshare?
问题描述
他们使用Flash制作的下载按钮,所以我无法检索下载链接。
绝对有可能,但是这有点黑客。我一直在使用 wget
自己做一段时间。诀窍是使服务器认为是从浏览器发出请求,并且要做到这一点,你需要几件事:
- 下载链接(文件的实际链接)
- 链接引荐来源网址(带有下载按钮的网页)
- Zippyshare会话ID在Cookie中)
这是一个屏幕截图,说明你可以在哪里获取每个项目:
现在打开您的终端,并使用以下命令(替换必要项目):
wget< download_link> \
--referer ='< referrer>'\
--cookies = off --headerCookie:JSESSIONID =< session_id> \
--user-agent ='Mozilla / 5.0(Windows NT 6.0)Gecko / 20100101 Firefox / 14.0.1'
示例:
wget http://www16.zippyshare .com / d / 29887835/8895183 / hello.txt \
--referer ='http://www16.zippyshare.com/v/29887835/file.html'\
--cookies = off -headerCookie:JSESSIONID = 26458C0893BF69F88EB5743D74FE0F8C\
--user-agent ='Mozilla / 5.0(Windows NT 6.0)Gecko / 20100101 Firefox / 14.0.1'
原始答案:如何使用wget从主机站点下载?
注意:在命令中,实际上是'引用者'不是'referrer' / p>
Can anyone help me how to download files from zippyshare.com using bash (server with CentOS)? Their download button made with flash, so i can't retrieve download link.
It's definitely possible, but it's a little hacky. I've been doing it myself for quite some time using wget
. The trick is to make the server think that the request is being made from a browser and to make that happen, you need a couple of things:
- The Download Link (The actual link to the file)
- Link Referrer (The webpage with the download button)
- Zippyshare Session ID (Found in Cookies)
Here's a screenshot explaining where you can get each item:
Now open up your terminal, and use the following command (replacing necessary items):
wget <download_link> \
--referer='<referrer>' \
--cookies=off --header "Cookie: JSESSIONID=<session_id>" \
--user-agent='Mozilla/5.0 (Windows NT 6.0) Gecko/20100101 Firefox/14.0.1'
Example:
wget http://www16.zippyshare.com/d/29887835/8895183/hello.txt \
--referer='http://www16.zippyshare.com/v/29887835/file.html' \
--cookies=off --header "Cookie: JSESSIONID=26458C0893BF69F88EB5743D74FE0F8C" \
--user-agent='Mozilla/5.0 (Windows NT 6.0) Gecko/20100101 Firefox/14.0.1'
Original answer: How to use wget to download from hosting sites?
Note: In the command, it is in fact 'referer' not 'referrer'
这篇关于如何从zippyshare的bash下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!