Skip to content

Instantly share code, notes, and snippets.

@ecwright3
Created March 21, 2018 15:20
Show Gist options
  • Save ecwright3/ed8b946d1fe581bcfb8e47348440b2ee to your computer and use it in GitHub Desktop.
Save ecwright3/ed8b946d1fe581bcfb8e47348440b2ee to your computer and use it in GitHub Desktop.
Quick script to load files into file.io
import requests
myFile = {'file':open("[file/path.txt]", 'rb')}
r = requests.post("https://file.io", files=myFile)
link = False
if r.json()['status']:
link = r.json()['link']
print(link)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment