Use transfer.sh in python
Project description
transfer.py
Use transfer.sh with python
Maybe u can donate me on Bitcoin : bc1q6kyex89x9ppqw0kww9qfrtfrta6sdhnvgjz87r
Installation
Install transfer.py with pip
pip install transfershpy
Usage/Examples
Download a file:
downloadFile('https://transfer.sh/2olwuBElm6/hello.txt', 'hello.txt')
Upload a file (simple way):
print(uploadFile('hello.txt', 'https://transfer.sh/hello.txt'))
Upload a file (complete way):
print(uploadFile('hello.txt', 'https://transfer.sh/hello.xt', maxDays=30, maxDownloads=5))
Get direct download of a file:
print(getDownloadPage("https://transfer.sh/sdk282/hello.txt"))
Get raw file in browser:
print(getRawFile("https://transfer.sh/fsadfe/hello.txt"))
Roadmap
18/11/23: 1.1 (get raw file and direct download function, some bugs fixed) 17/11/23: First version (download and upload function)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
transfershpy-1.1.tar.gz
(3.0 kB
view hashes)