Skip to content

Python script for converting a link to a file hosted on https://www.wetransfer.com to a link to the actual file that can be downloaded from the command line

Notifications You must be signed in to change notification settings

wpovernight/py-wetransfer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

py-wetransfer

Python 3 script for downloading WeTransfer files from the command line

Usage

You should have a WeTransfer address

https://www.wetransfer.com/downloads/XXXXXXXXXX/YYYYYYYYY

or a short-form one

https://we.tl/XXXXXXXXXXXX

Execute

python3 wetransfer.py "https://we.tl/XXXXXXXXXXXX"

and it will output the actual URL of the file that you can download.

You can then use wget or curl to download that URL, like this:

wget $(python3 wetransfer.py "https://we.tl/XXXXXXXXXXXX")
curl -O $(python3 wetransfer.py "https://we.tl/XXXXXXXXXXXX")

Requirements

Python 3.8+

Requests

BeautifulSoup

pyjson5

pip install requests beautifulsoup4 json5

September 2021 notes

I have updated this script to work with the latest WeTransfer links (as of September 2021). Many thanks to Alejandro Alonso, Marcos Besteiro López and Gary Watson for starting this off.

I have tested it on macOS with Python 3.9

About

Python script for converting a link to a file hosted on https://www.wetransfer.com to a link to the actual file that can be downloaded from the command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%