Skip to content

Instantly share code, notes, and snippets.

<?php
// ------WARNING------
// RUNNING THIS FILE WITH THE APPROPRIATE CREDENTIALS WILL
// ERASE ALL YOUR POSTS FROM YOUR TUMBLR BLOG!
// Tumblr Blog Info
//replace YOUR-TUMBLR-EMAIL with the email you are using to login to Tumblr
$tumblrEmail = 'YOUR-TUMBLR-EMAIL';
#!/usr/bin/env python
import oauth2 as oauth
import urlparse
import urllib
consumer_key = '<your-key-here>'
consumer_secret = '<your-secret-key-here>'
request_token_url = 'http://www.tumblr.com/oauth/request_token'