Skip to content

Instantly share code, notes, and snippets.

@Delivator
Created February 19, 2020 20:29
Show Gist options
  • Save Delivator/1844e3262068be6a87de63fcd9346694 to your computer and use it in GitHub Desktop.
Save Delivator/1844e3262068be6a87de63fcd9346694 to your computer and use it in GitHub Desktop.
import os
import sys
from siaskynet import Skynet
# upload
print("Uploading", str(sys.argv[1]))
skylink = Skynet.UploadFile(str(sys.argv[1]))
print("Upload successful, skylink: " + skylink)
os.system("echo " + skylink + " | clip")
os.system("start https://siasky.net/" + skylink.replace("sia://", ""))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment