download files via terminal/cmdline through wetransfer.com

user2039215 picture user2039215 · Feb 4, 2013 · Viewed 36.2k times · Source

poeple more and more send me big zip files via wetransfer, which is fine as it works and i don't need to setup a ftp or upload myself. but i need to get this data to my ubuntu server that sits on a fast connection in a serverfarm.

i tried to wget the link that wetransfer sends by mail, but i only get the html info page that shows up before wetransfer sends the file through http

i tried a txt-browser (lynx, elinks) but wetrasnfer keeps on mumbling about "outdated browser" and it somehow does not work

i end up downloading to my laptop and uploading through throttled DSL to the server which takes all night...

does anyone had success with downloading wetransfer links from linux terminal?

thnx mart

Answer

Meetai.com picture Meetai.com · Apr 27, 2013
  1. First, obtain the real download link.
  2. Using your browser (I'm using Firefox) click "Download Link" on WeTransfer's download page.
  3. After the download begins, right-click on the file being downloaded and select "Copy Download Link".
  4. Find out your browser's User Agent. You can use whatsmyuseragent.com to grab it.
  5. Prepare your wget command and download the file.

Example:

wget --user-agent Mozilla/4.0 '[your big address here]' -O dest_file_name

Don't forget the quotes.

[your big address here] must be the direct link to the file, not the forwarded html page. You can get the big address by starting the download on any machine, then copy the link from your download-manager (eg. firefox, chrome)