tumblr_generate_html_files is a script which lets users generate HTML files for Tumblr posts. This script is a helper script for the TumblThree program.
-
Clone the repository to your local machine (or download the zip file)
-
Make sure Python 3 is installed
-
Make sure jinja2 and BeautifulSoup are installed, if not:
pip install Jinja2
pip install beautifulsoup4
Use TumblThree to download a blog of your choice. Make sure the options Dump crawler data
, Download image meta
, and Download video meta
are checked (the options circled here).
Then use the generate_html_files.py
script to generate the HTML files.
usage: generate_html_files.py [-h] BLOG_DIR
Script that uses json files downloaded by the program TumblThree to generate HTML files
positional arguments:
BLOG_DIR Directory to where TumblThree has downloaded a blog (this
directory must contain images from the blog, the HTML files will
be generated to this directory)
BLOG_DIR is the download directory to which TumblThree downloaded a tumblr blog.
- Download a blog with the correct settings using TumblThree
- Run the script (might take a little while, be patient)
- Here in the newly generated HTML index file
- Here is one of the blog posts
GNU General Public License v3.0
Pull requests are welcome.
Helped wanted implementing the following:
- Parse video posts
- Add tags to the HTML file
This is a simple helper script for TumblThree. For any issues regarding TumblThree please visit that GitHub page.