About Pyfan(派饭)
咳咳,最近在写毕业论文,Pyfan改的一团糟,暂时停工啦~
Pyfan(派饭)是一个python写的fanfou命令行客户端。中文手册。请注意pyfan还未对普通用户做好准备。
Pyfan is a python class interact with fanfou, and a command line front-end. Please note that pyfan is not quite ready yet for general use.
Get Pyfan
Version 0.0.7 is a alpha version that almost works. Packages for windows is list on downloads page. There is also a single .py version for people who have python installed (require python 2.4 or later.).
Note: Pyfan is in re-coding for it's style and function, so there maybe a long time to get 0.0.8 or 0.1.0. You may get the latest code from svn -- I'm not sure if it can works, save your time!
svn checkout http://pyfan.googlecode.com/svn/trunk/ pyfan-read-only
Known issue
- XML parse sometimes can't deal with HTML (like xml.parsers.expat.ExpatError, etc), maybe I should use HTML parse, not XML
- pyfan.exe have some problems in string search( so -s, -m, -c can't work:( )
Todo list
- Add gui interface (try PyGTK)
- reorganize fanfou.Api
- Add unit test code.
- Download old pages. (some body like more data...)
- Manage add friend action(download friend's timeline(and self's)).
- Delete favorite.
- Export XML.
- Manage tags.
- Analysis by date.
- ...
Change Log
In 0.0.7
- (-P) purge oldest posts.
- (Post) ask password again if it goes wrong.
- Some bugs fixs. (More new bugs?)
In 0.0.6
- (-D) post delete function added.
- (Change) -s, -d, -w, search function now based on the list last saved.
In 0.0.5
- (-f) can use with search (means last search result is saved). 2008-1-26
- (-d) add date search function.
- (--max) add initiation option.
In 0.0.4
- (-f) add favorite function. (With out api, it's done by cookie) 2008-1-26
- (-w) print timeline by username.
In 0.0.3
- (fix) add os.path to manage file path. 2008-1-13
- (fix) the download function to avoid threading bugs. 2008-1-13