Transfersh is a Python library for upload files on transfer.sh.
This Python API was created to make uploading and downloading files from transfer.sh simple.
pip install transfersh-cli && pip install wget
transfersh "filepath"
import wget
try:
download = wget.download("direct URL") # How? https://encrypting.host/uRZkzQnPb8.gif?key=R4WzyRMxLBDjcp
except Exception as e:
print(e)
# your file can't be downloaded.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.