Instantly share code, notes, and snippets.

@ndarville /README.md
Last active Nov 20, 2018

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

ndarville commented Nov 20, 2018

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