(May-11-2020, 12:19 PM)buran Wrote: It would be better to upload your code to a repo, e.g. on Github. Not many, if anyone, will risk blind download from untrusted source.
Also, you see the contradiction between
(May-10-2020, 09:36 PM)Aqua22 Wrote: i wrote a simple python script
and
(May-10-2020, 09:36 PM)Aqua22 Wrote: And i can't put the code straight here because it's not just only a python file.
what would "not only python file" refer to?
Bassically there's an output text file where the information about the file upload gets insterted and there is a test file to test on
Ok so here is the git repo: https://github.com/EverYT77/vshare-api-u...ith-python
and here is the scirpt:
import requests import sys url = 'https://api.vshare.is/upload' a = input("Please provide the filename with extension to upload to this page: VSHARE\n\n") files = {'file': open(a, 'rb')} r = requests.post(url, files=files) sys.stdout = open("output.txt", "w") print(r.status_code) print(r.text) sys.stdout.close()