Skip to content

Instantly share code, notes, and snippets.

@ndarville
Last active November 20, 2018 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndarville/a260a4edc43256f2d78b72fe2a1cbb38 to your computer and use it in GitHub Desktop.
Save ndarville/a260a4edc43256f2d78b72fe2a1cbb38 to your computer and use it in GitHub Desktop.
How to export your Tumblr site

How to export your Tumblr site

You will need to have Ruby installed and the knowledge of how to run commands from the terminal.

  1. Install the jekyll-import gem.

     gem install jekyll-import
    
  2. Save the included export.rb to an empty folder.

  3. Open export.rb with a text editor and define the website to export under "url".

  4. Run the script from your terminal with ruby export.rb.

You should now have a very basic _posts/ and tumblr_files/ folder.

require "jekyll-import";
JekyllImport::Importers::Tumblr.run({
"url" => "https://mysite.tumblr.com",
"format" => "html", # "md" misses links and images etc
"grab_images" => true,
"add_highlights" => false,
"rewrite_urls" => false # `true` breaks build
})
@ndarville
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment