Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- url="https://dump.uz"
- r = ((((requests.get(url)).text).split('''sequentialUploads: true,
- url: ''')[1])[1:]).split("'")[0]
- print (r)
- url=r
- #filez = open('boot.zip', 'rb')
- #filesd = {
- # "filename":"files.json",
- # "file": open('boot.zip', 'rb'),
- # "name":"boot.zip",
- # "size":"300",
- # "type":"zip",
- # "error":"null"
- #
- # }
- files={ 'name': open('boot.zip', 'rb'), 'size': 1088669, 'type': "application/zip"}
- data = {
- "Button" : "uploadButton",
- }
- try:
- d = requests.post(url, files=files, data=data)
- print (d.text)
- finally:
- #filez.close()
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement