bash 如何从zippyshare下载bash?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9342359/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to download in bash from zippyshare?
提问by user1218197
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.
任何人都可以帮助我如何使用 bash(带有 CentOS 的服务器)从 zippyshare.com 下载文件?他们的下载按钮是用 flash 制作的,所以我无法检索下载链接。
回答by Sheharyar
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:
这绝对是可能的,但它有点hacky。我自己已经使用wget. 诀窍是让服务器认为请求是从浏览器发出的,要做到这一点,你需要做几件事:
- The Download Link (The actual link to the file)
- Link Referrer (The webpage with the download button)
- Zippyshare Session ID (Found in Cookies)
- 下载链接(文件的实际链接)
- Link Referrer(带有下载按钮的网页)
- Zippyshare 会话 ID(在 Cookie 中找到)
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'
注意:在命令中,实际上是'referer'而不是'referrer'
回答by gavenkoa
Use Web developer tools from browser (IE/Chrome come with build-in, for Firefox use Firebug). Under network traffic tab look what HTTP request performed to download file.
使用浏览器中的 Web 开发工具(IE/Chrome 内置,Firefox 使用 Firebug)。在网络流量选项卡下查看为下载文件执行的 HTTP 请求。
Next step is to use wgetor curlutility.
下一步是使用wget或curl实用程序。
Reversing step is your task, make something by own...
倒车步骤是你的任务,自己做点什么......
回答by Abdul Rehman Janjua
Why don't you give a try to PlowShare it can be found here
你为什么不试试 PlowShare 它可以在这里找到
https://code.google.com/p/plowshare/
Example to download
下载示例
plowdown http://www3.zippyshare.com/v/92458242/file.html
hope this helps. For more help https://code.google.com/p/plowshare/wiki/Readme4
希望这可以帮助。如需更多帮助https://code.google.com/p/plowshare/wiki/Readme4

