一直想写一些开源项目,但总是很懒。今天摸索了几分钟,把去年11月写的RSS订阅机器人代码上传了,这是我的第一个开源项目,希望后续能有更多的开源项目。

这个项目其实是我遇到的一道笔试题,我仓促在两三个小时内完成就再也不管了,很简陋。现在我也很忙,无心维护升级,如果有哪位仁兄愿意维护,欢迎留言,我可以加为项目的管理员。

项目地址:http://code.google.com/p/rssfeedbot/
开发环境:python,GAE(Google appengine)

用途:
1、可以学习GAE(Google appengine)的Cron、task、jabber机器人的用途。
2、在此基础上,应该可以扩展一下成为其他机器人的。
功能:
1. 可以添加jabber机器人,如yourappid@appspot.com
2. 用户可以订阅feed
3. 用户可以退订feed
4. 定时扫描(两个cron和两个task),将新更新的feed变化发送给在线用户。

Basic features:
A user can add the bot to his/her Google talk/jabber friends list.
The user types the words "sub feed_url?" to the bot to begin subscribing to
the feed at the specified feed_url (feed_url? is the placeholder for the actual feed url. e.g. http://myweb.com/feed)
The user types the words "unsub feed_url?" to stop subscribing to the feed
The bot scans the feed at a specified time interval, and sends new contents to the subscribing user

How to Play:
1. You should have a Google appengine account.
http://appengine.google.com

2. Set "application: your_gae_id" in app.yaml
app.yaml
application: yourappid

3. Update to your GAE.
appcfg.py update projectname

4. Add bot as your Gtalk/jabber friend
bot’s contact: yourappid@appspot.com

5. Subscribing the specified feed_url.
types the words "sub feed_url?" to the bot ,then the bot will send you new subscribing contents.
example:
sub http://www.newsmth.net/rssi.php?h=1

6. stop subscribing to the feed
types the words "unsub feed_url?" to the bot
unsub http://www.newsmth.net/rssi.php?h=1

7. list all your feeds
types the words "ls" to the bot
example:
ls

reply:
http://www.newsmth.net/rssi.php?h=1