midore / mblogger

for blogger user

Home Page:http://midorex.blogspot.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mblogger
 Blogger User's tool

Dependency
 Ruby 1.9
 gdata => http://code.google.com/p/gdata-ruby-util/downloads/list

Usage
$ vi mblogger/mblogger-config
$ vi mblogger/bin/mblogger-run.rb

[help]
$ cd mblogger/bin
$ ruby19 mblogger-run.rb --h

[get entry in current month]
$ ruby19 mblogger-run.rb --get

[get entry]
$ ruby19 mblogger-run.rb --get 2010-01

[print xml]
$ ruby19 mblogger-run.rb --doc draft.txt

[post entry]
$ ruby19 mblogger-run.rb --post draft.txt

[update entry]
$ ruby19 mblogger-run.rb --update /your-data-directory/2010-01-01.txt

[delete entry]
$ ruby19 mblogger-run.rb --del 1234566789 # edit_id

[Text]
$ cat draft.txt
--control
yes
--category
test,blogger,music
--title
New Title
--content
test post.
second line.
link line <a href='http://github.com'>github.com</a> ... 

today's bgm
<blockquote>
1, court and spark
2, edith and the kingpin
...
</blockquote>

brank line

<pre>
def hello
  puts "ruby is fun\n"
end
</pre>
last line.

[Alias]
$ vi mblogger/bin/mblogger-run.rb
 # add
 #!/path/to/your/ruby19
$ chmod +x mblogger/bin/mblogger-run.rb
$ vi .bashrc
 # add
 alias 'blogger'='/path/to/mblogger/bin/mblogger-run.rb'

$ source .bashrc
$ blogger --h

Licence
 Copyright (C) 2009 - 2011 midore
 mblogger is licensed under the GPLv2

About

for blogger user

http://midorex.blogspot.com/


Languages

Language:Ruby 100.0%