usr bin env python coding utf-8 from __future__ import division print_

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#!/usr/bin/env python
# coding: utf-8
from __future__ import division, print_function, unicode_literals
from future_builtins import ascii, filter, hex, map, oct, zip
from grab import Grab, UploadFile
g = grab.Grab()
g.go("https://www.dropbox.com/login")
g.set_input("login_email", "jepalabor@solvemail.info")
g.set_input_by_id("login_password", "123321")
g.submit()
g.setup(multipart_post={'_subject_uid': "279597835", 't': '',\
'plain': 'yes','dest': '', 'file': UploadFile('/home/ihor/AVA.jpeg')},
url="https://dl-web.dropbox.com/upload")
g.request()