Created
March 21, 2018 15:20
-
-
Save ecwright3/ed8b946d1fe581bcfb8e47348440b2ee to your computer and use it in GitHub Desktop.
Quick script to load files into file.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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