A wrapper around the gofile.io API.
via pip
pip install --user gofile-client
from gofile import Gofile
client = Gofile(token='<your-token>')
# Upload a file
response = client.upload_file('path/to/file')
print(response)
# Get the link to a file
folder_contents = client.get_content('<file-id>')
for _, item in folder_contents:
print(item['link'])