返回上一页  首页 | cnbeta报时: 05:00:03
Google 发布 Command Line Tool,通过命令行操作 Google 各种服务
发布日期:2010-06-19 07:43:35  稿源:
命令行控们总是希望用键盘搞定一切,于是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里。

Via Open Source at Google

我们在FebBox(https://www.febbox.com/cnbeta) 开通了新的频道,更好阅读体验,更及时更新提醒,欢迎前来阅览和打赏。
查看网友评论   返回完整版观看

返回上一页  首页 | cnbeta报时: 05:00:03

文字版  标准版  电脑端

© 2003-2025