Skip to content

satoryu/hatenablog-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hatena Blog Export

This is a Ruby script to export entries from Hatena Blog for migrating to Jekyll.

Prerequisites

Before you use the script, you need to have

  • Ruby 2.7
  • Bundler
  • Hatena Blog ID
  • Hatena Blog API Key

Installation

Clone this repository:

git clone https://github.com/satoryu/hatenablog-export.git
cd hatenablog-export

Install gems:

bundle install

Usage

bundle exec ruby export.rb \
  --user_id YOUR_HATENABLOG_USER_ID \
  --blog_id YOUR_HATENABLOG_BLOG_ID \
  --api_key YOUR_API_KEY
  • --user_id, -u: Your Hatena Blog User ID, eg. satoryu
  • --blog_id, -b: Your Hatena Blog Blog ID, eg. satoryu.hatenablog.com
  • --api_key, -k: Your Hatena Blog API Key.

License

This codes are under the MIT License. See this file.

About

A Ruby script to export contents from Hatena Blog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages