Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bunnykek/wetransfertool
WeTransfer unofficial API wrapper written in python for anonymous upload and download of files and folders.
https://github.com/bunnykek/wetransfertool
api hacktoberfest python wrapper-api
Last synced: 2 days ago
JSON representation
WeTransfer unofficial API wrapper written in python for anonymous upload and download of files and folders.
- Host: GitHub
- URL: https://github.com/bunnykek/wetransfertool
- Owner: bunnykek
- Created: 2022-07-03T22:58:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-20T20:21:47.000Z (about 1 year ago)
- Last Synced: 2024-11-05T22:15:07.605Z (10 days ago)
- Topics: api, hacktoberfest, python, wrapper-api
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WeTransferTool
Upload and download files/folders from wetransfer.com
You can upload a file/folder of max 2GB.Installation:
```
pip install WeTransferTool
```Terminal use:
```
$> wetransfertool -h
usage: wetransfertool [-h] [-dl DL] [-ul UL] [-mw MW]options:
-h, --help show this help message and exit
-dl DL Wetransfer file URL
-ul UL File/Folder path
-mw MW Maximum number of workers (parallel uploads)
```API use:
```
from WeTransferTool import Wewet = We()
# to upload a file/folder to the server
metadata = wet.upload('/path/to/file', 'file name', 'message')
print(metadata)# to download a file/folder from the server
wet.download(metadata['url'])
```upload() method will return json containing metadata of the uploaded file/folder.
response example:
```
{
"id": "27f328599c99ca222222222222222222222222",
"state": "processing",
"transfer_type": 4,
"shortened_url": "https://we.tl/t-222222222",
"recommended_filename": "tomb.gif",
"expires_at": "2022-07-10T23:01:11Z",
"password_protected": False,
"uploaded_at": None,
"expiry_in_seconds": 604795,
"size": None,
"deleted_at": None,
"account_id": None,
"security_hash": "719ce3",
"from": None,
"creator": {
"auth0_user_id": None,
"email": None
},
"message": "test-folder-upload",
"number_of_downloads": 0,
"display_name": "tomb.gif",
"files": [
{
"id": "b2c12c7c6fd93f1422222222222222222222222",
"name": "tomb.gif",
"retries": 0,
"size": 5501922,
"item_type": "file",
"chunk_size": 15728640
}
],
"recipients": []
}
```