This is a Ruby script to export entries from Hatena Blog for migrating to Jekyll.
Before you use the script, you need to have
- Ruby 2.7
- Bundler
- Hatena Blog ID
- Hatena Blog API Key
Clone this repository:
git clone https://github.com/satoryu/hatenablog-export.git
cd hatenablog-export
Install gems:
bundle install
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.
This codes are under the MIT License. See this file.