如何从bash从zippyshare下载? [英] How to download in bash from zippyshare?
问题描述
任何人都可以帮助我如何从zippyshare.com使用bash(服务器与CentOS)下载文件?
他们的下载按钮用闪光灯制作,所以我不能检索下载链接。
它有点hacky。我一直在使用 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
注意:在命令中,实际上referer不是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'
这篇关于如何从bash从zippyshare下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!