命令行控們總是希望用鍵盤搞定一切,于是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里。
|
新聞熱點
疑難解答