71

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

2
  • Give us a link to work with.
    – dongle
    Mar 22, 2013 at 2:24
  • Please mark correct answer if it works for you!
    – Adeerlike
    Jul 22, 2019 at 6:20

8 Answers 8

141
  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)

15
  • 1
    Looks like this method doesn't work any more unfortunately, the file is redirected to an HTML page which contains the message: You are using an outdated browser that WeTransfer no longer supports. Even with a modern UserAgent string it still fails...
    – George
    Jul 18, 2013 at 18:37
  • 27
    It works. You just have to obtain real download link. Using Firefox click download link on wetransfer download page. After download begins right click on download and click "copy download link". Go to whatsmyuseragent.com and grab your browsers user agent. Prepare your wget command and download file. Cheers
    – Emre Erkan
    Oct 24, 2013 at 20:25
  • 1
    Works for me. 'Your big address' is obviously the download link the browser is sent by wetransfer, after you click on Download there, not the original http://we.tl/XXXXXXXXX address. Maybe some of the commenters who reported this answer not working for them confused the two? One thing I had to add to the wget line was the --no-check-certificate switch because the certificates issued for the resp. server were not trusted by wget, so my final command looke sth. like: wget --user-agent Mozilla/4.0 --no-check-certificate 'https://wetransferbeta-eu.s3.amazonaws.com/...' -O archive.tbz2
    – the Ritz
    Oct 25, 2013 at 7:01
  • 3
    Just open the network tab in the browser console before clicking on the download link. Then click on the download button and copy the get request url from the network tab.
    – guido
    Feb 6, 2014 at 3:24
  • 1
    I don't know if this is working anymore-- there is a signature value passed in the link parameters. I was trying to wget --content-disposition --user-agent 'Mozilla/4.0' download.wetransfer.com/wetransfer-eu1/… from wetransfer.com/downloads/… and I get HTTP request sent, awaiting response... 400 Bad Request
    – user151841
    Jun 3, 2016 at 22:56
35

I couldn't get it working with wget so here's an alternative using curl:

curl '{pretty_long_appendix_here}' --location --output {file_name_on_my_disk}

replace

{pretty_long_appendix_here}

with the actual download url [starting with https://download.wetransfer.com/] you get when you actually start the download.

In chrome for example start the download and go to

Window > Downloads

Stop the running download and copy the download-URL by right-clicking on it.

Replace

{file_name_on_my_disk}

with the actual name you want the file to be stored on your disk.

2
  • 3
    This should be the accepted answer. As of August 2019 it works. Aug 2, 2019 at 8:25
  • 1
    Working Feb 2022. Thanks! Feb 18, 2022 at 8:47
15

Alejandro Alonso wrote a Python script py-wetransfer for downloading wetransfer files in command line mode.

With a we transfer address similar to https://www.wetransfer.com/downloads/XXXX/YYYY/ZZZZ you can execute this command to download the file:

python wetransfer.py -u https://www.wetransfer.com/downloads/XXXX/YYYY/ZZZZ

It requires Python and Requests.

1
6

Solution working in October 2021. Just wget and a browser are required:

  1. access your wetransfer link in any modern browser (https://wetransfer.com/downloads/<>)

  2. open the developer console / panel and head to the network tab

Network tab

  1. set the network speed to 3G (in chrome, or the lowest one on your browser)*

Lower network speed for this tab

  1. click download

  2. in the network tab, find the request that was created right after clicking download and inspect it

Find the request

  1. On the request preview, copy the direct_link content

enter image description here

  1. Now just do wget -o myfile 'your direct link'

  2. You can be nice enough to cancel the download that's still going on your browser so you don't consume that much bandwidth from wetransfer

*You should lower your tab speed because every direct_link has a token attached to it. This token expires once the download is complete. So you want to make sure the download on your browser will take longer than the one on your terminal.

1
  • 1
    still works 2023
    – Thiagocfn
    Mar 9 at 2:42
4

WeTransfer does offer an option to upload/download files via terminal

enter image description here [ Source : https://wetransfer.com/products ]

You've to download WTClient from here available for Win, Mac and Linux.

enter image description here

Even though it has useful options like 'debug mode'

enter image description here

downloading is only possible with a Plus account.

enter image description here

bummer!


ReadMe

enter image description here

1
  • 2
    Downloading from the CLI is only possible with a Plus account. Aug 26, 2020 at 9:11
1

I've forked and updated Marcos' fork of Alejandro Alonso's py-wetransfer script.

It's now able to work on Python 2.x or 3.x, and it can handle the shortened links. You can find it here: https://github.com/GaryWatsonUK/py-wetransfer/blob/master/wetransfer.py

(Thanks for sharing your work, guys! I learned a lot from it.)

0

If you don't have terminal access, here's a PHP script that can download WeTransfer links.

I've used it to save time when having to download files to my computer, and then upload them to a server.

0
0

This utility written in Go seems very well made and worked right away for me, in 2022:

https://github.com/gnojus/wedl

Uses unofficial wetransfer API used when downloading with a browser.

The Python scripts above and their forks didn't work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.