使用するライブラリをインストールします pip install python-tumblpyhttps://github.com/michaelhelmick/python-tumblpy 手順1 Tumblrアプリの登録をして、 OAuth Consumer KeyとSecret Keyを取得します。 コールバックURLは適当にlocalhost:8000とかを入れました アプリの登録 http://www.tumblr.com/oauth/apps 手順2 以下のスクリプトを実行して、oauth_tokenとoauth_token_secret、auth_urlを取得します from tumblpy import Tumblpy OAuth_Consumer_Key = "手順1で取得したOAuth Consumer Key" Secret_Key = "手順1で取得したSecret
![PythonスクリプトからTumblrに画像を投稿してみたメモ - メモ置き場](https://cdn-ak-scissors.b.st-hatena.com/image/square/aec28ee55260000b3fe014cf5753c11623d7121a/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fy%2Fyuheiomori0718%2F20120609%2F20120609171721.png)