Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. import requests
  2.  
  3. url="https://dump.uz"
  4. r = ((((requests.get(url)).text).split('''sequentialUploads: true,
  5. url: ''')[1])[1:]).split("'")[0]
  6. print (r)
  7. url=r
  8. #filez = open('boot.zip', 'rb')
  9. #filesd = {
  10. # "filename":"files.json",
  11. # "file": open('boot.zip', 'rb'),
  12. # "name":"boot.zip",
  13. # "size":"300",
  14. # "type":"zip",
  15. # "error":"null"
  16. #
  17. # }
  18.  
  19.  
  20. files={ 'name': open('boot.zip', 'rb'), 'size': 1088669, 'type': "application/zip"}
  21. data = {
  22. "Button" : "uploadButton",
  23. }
  24. try:
  25. d = requests.post(url, files=files, data=data)
  26. print (d.text)
  27. finally:
  28. #filez.close()
  29. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement