billpmurphy / tumblr-content-graph

Simple graphing tool for Tumblr posts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

One cool thing you can do with Tumblr's REST API is see where content on a particular Tumblr blog originally came from. This repository contains a tool for doing just that.

content_graph.py will find the original author of all reblogged posts on a particular blog and turn the result into a dependency tree diagram.

Usage:

  1. Clone this repository and install the dependencies. Make sure you have graphviz installed and in your $PATH.
git clone https://github.com/billpmurphy/tumblr-content-graph
cd tumblr-content-graph

virtualenv env
source env/bin/activate
pip install -r requirements.txt
  1. Get your Tumblr API credentials and stash them in a JSON file, tumblr_conf.json.

  2. Finally, run content_graph.py.

python content_graph.py <blog> <leaves_per_node> <tree_max_depth> <output_filename>

For example:

python content_graph.py you-have-just-experienced-things 2 4 example

This generates the following graph:

Example

About

Simple graphing tool for Tumblr posts.

License:MIT License


Languages

Language:Python 100.0%