使用fuse的blogger文件系统
bloggerfs的Python项目详细描述
Author: | mg |
---|---|
Date: | 2010-07-02 |
Copyright: | Lesser GNU Public License |
Version: | 0.5.1 |
Manual section: | 1 |
Manual group: | FUSE |
概要
bloggerfs [fuse options] <mount point> [options]
说明
bloggerfs是用户空间中的一个文件系统,允许您浏览 blogger的博客、帖子和评论。 主要是所有文件都是只读的,无法创建新的 但是有一些特别的可以让你添加新的帖子和评论 和标签。
安装
bloggerfs需要fuse-python、gdata和zope.interface。全部 需求应该由pip或distribute自动安装。
使用pip:
$ pip install bloggerfs
或使用Distribute:
$ python setup.py install
岗位互动
添加帖子:
cat feed.xml > <mnt>/<blog id>/add_post
或者用rst2atom:
rst2atom README.txt > <mnt>/<blog id>/add_post
删除帖子:
rmdir <mnt>/<blog id>/posts/<post id>/
添加标签:
echo label 1 > <mnt>/<blog id>/posts/<post id>/add_label
添加两个标签:
echo label 1,label 2 > <mnt>/<blog id>/posts/<post id>/add_label
文件系统结构
享受ascii艺术:)
mnt/ ├── <blog id>/ ├── .../ └── <blog id>/ ├── add_post ├── author/ │ └── 0/ │ ├── email/ │ │ └── text │ ├── name/ │ │ └── text │ └── uri/ │ └── text ├── category/ ├── contributor/ ├── etag ├── id/ │ └── text ├── link/ │ ├── 0/ │ │ ├── href │ │ ├── rel │ │ └── type │ └── ... ├── posts/ │ ├── <post id>/ │ ├── .../ │ └── <post id>/ │ ├── add_comment │ ├── add_html_comment │ ├── add_label │ ├── author/ │ │ └── 0/ │ │ ├── email/ │ │ │ └── text │ │ ├── name/ │ │ │ └── text │ │ └── uri/ │ │ └── text │ ├── category/ │ ├── comments/ │ │ ├── <comment id>/ │ │ ├── .../ │ │ └── <comment id>/ │ │ ├── author/ │ │ │ └── 0/ │ │ │ ├── email/ │ │ │ │ └── text │ │ │ ├── name/ │ │ │ │ └── text │ │ │ └── uri/ │ │ │ └── text │ │ ├── category/ │ │ ├── content │ │ ├── contributor/ │ │ ├── etag │ │ ├── id/ │ │ │ └── text │ │ ├── in_reply_to/ │ │ │ ├── href │ │ │ ├── ref │ │ │ ├── source │ │ │ └── type │ │ ├── link/ │ │ │ ├── 0/ │ │ │ │ ├── href │ │ │ │ ├── rel │ │ │ │ └── type │ │ │ └── ... │ │ ├── published/ │ │ │ └── text │ │ ├── title │ │ └── updated/ │ │ └── text │ ├── content │ ├── contributor/ │ ├── etag │ ├── id/ │ │ └── text │ ├── link/ │ │ ├── 0/ │ │ │ ├── href │ │ │ ├── rel │ │ │ ├── title │ │ │ └── type │ │ └── ... │ ├── published/ │ │ └── text │ ├── title │ └── updated/ │ └── text ├── published/ │ └── text ├── summary ├── title └── updated/ └── text
选项
-h, --help | show the help message and exit |
-o opt | mount options (can be repeated) |
-e, --email=EMAIL | |
Google account email | |
-p, --password=PASSWORD | |
Google account password | |
-b, --debug | Show debugging info |
--syslog | Log messages to syslog |
-l, --logfile=LOGFILE | |
Log messages to file |
评论互动
添加注释:
添加HTML注释:
可以删除评论,只需删除评论目录即可: