Tuesday, February 14, 2006

Test mtsend

mtsend.py is a command line tool written in python. It uses Movable Type’s XML-RPC interface. It appears that it also works with WordPress’ XML-RPC interface. So I have decided to give it a try.


In file ~/.mtsendrc



[global]
default=eradicus

[site-blogsome]
url=http://eradicus.blogsome.com/xmlrpc.php
username=*****
password=*****
encoding=UTF-8

[blog-eradicus]
site=blogsome
blogid=1

It works!



joset@kee$ ./mtsend.py -B blogsome
+----+-----------+-------------------------------+
| ID | Blog Name | URL |
+----+-----------+-------------------------------+
| 1 | Sophie | http://eradicus.blogsome.com/ |
+----+-----------+-------------------------------+

joset@kee$ ./mtsend.py -C
+----+----------------------+
| ID | Category Name |
+----+----------------------+
| 5 | Healthy Vices |
| 2 | Of Love and Romance |
| 1 | Progressive Studies |
| 3 | Uncategorized |
| 6 | Unsolicited Opinions |
+----+----------------------+

joset@kee$ ./mtsend.py -V
Version 1.1

Massive blogging ahead!

No comments: