转载自我的
blog
花了两天时间,搭建起了这个
del.icio.us自定义搜索引擎,可以在自己del.icio.us书签的某个tag的站点中进行搜索。比如直接在job的tag下去搜已经收集好的51job/chinahr等站点。
需要输入del.icio.us的用户名和密码。我只能口头保证不窥探保存你的密码,使用前还请谨慎。因为不保存用户名和密码信息,所以cse的站点定义不会随着del.icio.us的书签更新而更新。需要更新的话,不妨再次访问这个程序。
调用了del.icio.us的api,但是不能频繁访问,否则就会摔过来503。
zooie早就做过相同的工作,提供的功能也更复杂。我的这个程序使用了google cse比较新的Linked CSEs,一来不必操作annotations xml文件;二来可以生成一段代码嵌到你需要的页面中。
相关的一些文档和链接
* Google CSE documents
* Del.icio.us API
* zooie’s work I almost duplicate it besides Linked CSEs introduced. Then you need not to download and upload the annotations XML file and you can copy a piece of code to your page then get the cse toolbar.
* Basic HTML Authentication with Python
* Python and CGI
* Google 黑板报 — Google 中国的博客网志: 自定义搜索走向全球
* My BLOG in Chinese
* Filed by charlie at 10:46 pm under Engineer, webdev