Python Forum
Just a simple vshare.io api script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Just a simple vshare.io api script
#3
(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()
Reply


Messages In This Thread
Just a simple vshare.io api script - by Aqua22 - May-10-2020, 09:36 PM
RE: Just a simple vshare.io api script - by buran - May-11-2020, 12:19 PM
RE: Just a simple vshare.io api script - by Aqua22 - May-11-2020, 03:51 PM
RE: Just a simple vshare.io api script - by buran - May-11-2020, 04:19 PM
RE: Just a simple vshare.io api script - by Aqua22 - May-11-2020, 04:24 PM
RE: Just a simple vshare.io api script - by buran - May-11-2020, 04:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple script to find directories containing pictures steve_79 8 6,889 Apr-24-2017, 04:21 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020