I hereby claim:
- I am derekg on github.
- I am derekg (https://keybase.io/derekg) on keybase.
- I have a public key ASAcZtA-jBQPDivxY6ACVrZyRg-SM6RIV5HPiSsA45cjTQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import urllib,hmac,time,hashlib,base64,httplib,sys,json,urlparse | |
## This is just a simple example that is self contained. | |
## You will need to modified it to make it work | |
## | |
## creds - need to be filled out | |
## blognmae - needs to be defined | |
## | |
## reads in image files from the command line and posts to your blog |
import urllib,sys | |
params = { 'email': '[email protected]' , 'password' : 'SECRET PASSWORD'} | |
params['type'] = 'regular' | |
params['group'] = 'http://derek-test-06.tumblr.com' | |
params['title'] = 'I love tumblr' | |
params['body'] = 'and I love python' | |
cred = urllib.urlencode(params,True) | |
print urllib.urlopen('http://www.tumblr.com/api/write',cred).read() |