^_^

2010年6月19日星期六

Google 发布 Command Line Tool,通过命令行操作 Google 各种服务



命令行控们总是希望用键盘搞定一切,于是 Google 发布了 GoogleCL(Google Command Line Tool),通过命令行即可操作Google各种服务。比如你想批量将硬盘里某个文件夹里的所有图片创建一个 Picasa 相册?输入以下命令:
$ google picasa create --title "My album" ~/Photos/vacation/*.jpg
再比如你想将硬盘里的某个网页发布为一篇 Blogger 博文、增加一个 Google Calendar 的日程、编辑一篇 Google Docs 文档:
$ google blogger post --blog "My blog" --tags "python, googlecl, development" my_post.html 
$ google calendar add "Lunch with Jason tomorrow at noon"
$ google docs edit --title "Shopping list" --editor vim
GoogleCL(Google Command Line Tool)是标准的 Python 应用,使用 Python gdata 库来通过命令行使 Google Data API 直接操作各种 Google 服务。

这里还有一些更多的例子,提供 .deb 包下载,Google 希望随着 GoogleCL 加入更多功能,能在今后进入 Debian 和 Ubuntu 里。
本站文章除注明外,均为本站原创
转载请注明文章转载自: 大笨熊乐园 [ https://blog.foolbear.com/ ]
文章标题: Google 发布 Command Line Tool,通过命令行操作 Google 各种服务
文章地址: https://blog.foolbear.com/2010/06/google-command-line-tool-google.html

没有评论 :

发表评论

Related Posts with Thumbnails