“tumblr_backup.py
is a script that backs up your Tumblr blog locally.The backup includes all images both from inline text as well as photo posts. An index links to monthly pages, which contain all the posts from the respective month with links to single post pages. Command line options select which posts to backup and set the output format. The audio and video files can also be saved.
By default, all posts of a blog are backed up in minimally styled HTML5.
You can see an example of its output on my home page.”
https://github.com/bbolli/tumblr-utils/blob/master/tumblr_backup.md