daily pastebin goal
79%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. f = open("/path/to/file/screenshot.png", "r")
  2. f2 = open("/path/to/file/screenshot2.png", "r")
  3.  
  4.  
  5. data = {
  6.     "type": "1",
  7.     "photos": [
  8.         {"image": f},
  9.         {"image": f2}
  10.     ]
  11. }
  12.  
  13. print requests.post(url, data, auth=HTTPBasicAuth("usr", "pass")).json()
RAW Paste Data
Top