Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = open("/path/to/file/screenshot.png", "r")
- f2 = open("/path/to/file/screenshot2.png", "r")
- data = {
- "type": "1",
- "photos": [
- {"image": f},
- {"image": f2}
- ]
- }
- print requests.post(url, data, auth=HTTPBasicAuth("usr", "pass")).json()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement