Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install hatena2rest

How to install hatena2rest

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install hatena2rest
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.1.1 Available View build log
 
Author
License
GNU General Public License version 3
Dependencies
Imports
Lastest release
version 0.1.1 on Jan 9th, 2014

Hatena2reST is for conversion from Hatena Diary to Tinkerer. Tinkerer is blog system of reST format that is powered by Sphinx. Exported data of Hatena Diary are four kinds format. Those are XML, Movable Type format, CSV and PDF. This tools support XML only.

Requirement

Setup

Install Debian packages that Hatena2reST depends on

Hatena2reST depends on Python2.7, Sphinx, Tinkerer. Install Sphinx is:

$ sudo apt-get install python-sphinx

But Tinkerer are not yet official Debian packages, then download python-tinkerer from http://www.palmtb.net/deb/t/

Instal that choosing with one of three ways.

from source
$ git clone https://github.com/mkouhei/hatena2rest.git
$ cd hatena2rest
$ sudo python setup.py install
PyPI
$ pip install hatena2rest
Debian package

Not yet official package, then download python-hatena2rest-x.x_all.deb from http://www.palmtb.net/deb/ and install with dpkg command.:

$ wget http://www.palmtb.net/deb/h/python-hatena2rest_x.x-x_all.deb
$ sudo dpkg -i python-hatena2rest_x.x-x_all.deb

Usage

  1. Export Hatena Diary with XML format.

  2. Execute htn2rst commandl.

    $ htn2rst your_hatena_id.xml
    

Retrieve your photo images when converting, execute htn2rst command with "-r/--retrieve" option.

$ htn2rst -r your_hatena_id.xml
  1. Change generated direcotry.

    $ cd ~/tmp/hatena2rest
    
  2. Edit necessary setting items of tineker conf file.

    $ edit conf.py
    
  3. Build from reST to HTML files with tinker command.

    $ tinker -b -q
    

HISTORY

0.1.1 (2012-09-14)
  • Fix convert categories and title with URI.
0.1 (2012-09-12)
  • Support input as XML format.
  • MovableType format is no longer supported.
  • Pystache is no longer used.
prototype (2012-03-31)
  • Prototype release

ToDo

  • unit test
  • multi blog conversion with merging master.rst

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.