Ever wanted to know where a Tumblr blog gets its photos/videos from or who reblogs them? Using the Tumblr API v2, this script reads the notes to photo/video posts and prints two sorted lists of “reblogged from” and “reblogged by” blog names.
At first I wanted to visualize the result with GraphViz but then found that plain old text output is more meaningful. By default the result is generated as a page with links to tumblr archives. Specifying min-s
as the third parameter will change this to min-s links.
Requirements:
- jq command-line JSON processor (version 1.5 or later)
- GNU Parallel (version 20131122 or later)
Limitations: The API only returns 50 notes maximum, for details and workarounds see this stackoverflow question. This is why the "reblogged by" list is by far not complete.