Hi 🙂🖐
In this post, I will share with you how to upload files using Python and multipload.io API.
Create an account from here
Go to API from Tools
copy your API key and endpoint
hosts
The host references of the hosts that you want your files to be uploaded to gofile,googledrive,upfiles
import requests
api_key = 'Your API Key'
endpoint = 'https://api.multipload.io/upload/local'
file = open('test2.txt', 'rb')
res = requests.post(
url = endpoint,
data = {'token': api_key, 'hosts': 'upfiles,ufile,gofile'},
files = {'file': file}
)
print(res.json())
Top comments (0)