iHere blog的发展构想:单纯提供Service & 元宵节献礼:iHere slug service
Monday, Feb.. 9. 2009 –
Category: GAE 开发 –
6 Comments
Tags:
Google App Engine
在GAE 上海group里面看到有人抱怨gae 的blog 太多 看来是得改变iHere blog的策略了..其实很早在与robert mao老大的对话中已经有了雏形了 那就是:service 呵呵 敬请期待!这是以前在Twiiter里面抖的包袱:P 也隔了很久了(腐败的春节XD...)终于有个第一个实现:slug service
顾名思义 slug service 提供中文到英文的slug转换服务,输入为blog的title,输出为slug形式的url
例如:http://ihere.appspot.com/slug/service/?slug_text=牛年快乐
输出为:happy-year-of-the-ox
简单说下实现原理:
利用gae的urlfetch功能,去google translate页面翻译然后用BeautifulSoup解析得到结果,返回response给调用者。
调用的时候同样利用urlfetch:http://ihere.appspot.com/slug/service/?slug_text=牛年快乐 这个地址 ,结果会在response取得,我写了个包装函数可以直接调用
get_slug_from_service我的post的url其实就利用了这个slug功能,本来是个内部函数调用,现在公开为公共service。现在还只是个雏形而已。其实我更大的意思是想说下今后ihere blog的发展构思:在GAE上提供随处可用的service!
今后的iHere Blog的发展可能会往两个方向发展:Service&Web UI (Outer Heaven是UI方面的一个尝试..)
最近的Roadmap:
- Tag Service(Tag Cloud...)
- Comment Service(类似于Google Friends Connect的形式 )
- Status Service(记录访问数,ip等等..)
- Blog Import/Export Service(单纯导入导出Blog...)
- ....(占位)
6 Response to “iHere blog的发展构想:单纯提供Service & 元宵节献礼:iHere slug service”
Leave a Reply
Logo
About Me
-
A Computer Geek in Beijing, China. Focus on Web2.0 Technology: Google App Engine, Python, Django, Software Architecture, Agile, JAVA, J2EE, JavaScript, etc.
Coding for fun, Coding with passion :-) It's my life!
Most Popular Posts
- 1. GAE限制续 (2118)
- 2. Eclipse Google Plugin安装指南 (1988)
- 3. iHere Blog 1.0.2 安装配置 (1837)
- 4. iHere Blog 安装 简要配置 (1526)
- 5. 终于在做导入的时候遇到了GAE的瓶颈 (1216)
- 6. 新加Ajax效果Page flow (1108)
- 7. GAE上面的Unittest总结 (1104)
- 8. Web Python IDE Py I/O release! (1085)
- 9. 新东西 呵呵 JS3D (1051)
- 10. 转向了Appengine patch (1034)
Tags
-
App Engine
Appengine patch
Django
Google
Google App Engine
Google App Engine
Java
algorithm
api
app
appengine
autodiscovery
blog
cache
chat
cloud computing
cron jobs
datastore
demo
feature
fetion
fridge
gae
geo
google
google app engine
google docs
googlemaps
iHere Blog History
ide
ihere
inforsphere
install
java
jquery
map
mashup
memcache
metaweblog
new
nutch
open source
pageflow
plugin
projects
pyio
python
quota
release
released
rss
sdk
snap
sort
topStory
twitter
weblog api
杂记


10 months ago IP:202.108...
PS: 想使用Slug Service的同学 请在此留言:P你的支持是我最大的鼓励
10 months ago IP:218.80....
支持下
10 months ago IP:218.80....
Outer Heaven 很花哨,但不实用
10 months ago IP:202.108...
Outer Heaven 是个半成品 呵呵 想做点有意思的东西~ 通过这个也催促自己多学点js 最近确定了jquery作为js库:P 对Outer Heaven还有什么具体的改进意见 可以留言讨论:P10 months ago IP:218.82....
去google translate页面翻译 这个划不来吧,觉得GAE还是少一点urlfetch比较好
10 months ago IP:218.107...
google translate提供了ajax的api,返回json格式的结果,直接用json来解析简单多了,用不着BeautifulSoup来解析,万一页面变化还得重写
http://xmuer.appspot.com/2009/02/10/slug-url-method