Skip to content

Instantly share code, notes, and snippets.

View charlesbrandt's full-sized avatar

Charles Brandt charlesbrandt

  • Bloomington, Indiana
View GitHub Profile
@charlesbrandt
charlesbrandt / auth.py
Created July 19, 2015 12:33
Take pictures from directory and post them to a tumblr blog as a photoset (single post). This was adapted from: https://gist.github.com/velocityzen/1242662 Multiple photos in a photoset was adapted from: https://gist.github.com/derekg/1198576
import urlparse
import oauth2 as oauth
consumer_key = ''
consumer_secret = ''
request_token_url = 'http://www.tumblr.com/oauth/request_token'
access_token_url = 'http://www.tumblr.com/oauth/access_token'
authorize_url = 'http://www.tumblr.com/oauth/authorize'