October 15, 2010 by Ivan Kristianto
Access Google Data API From Command Line
Googlecl is a google utility to access Google Data API from command line. Googlecl is written in Python programming language. Googlecl allow you to update your blogger blog, Picassa, Calender, Contact, Google Doc, and Youtube videos. This tool connect to Google service using Google Data API. Since it is written with Python, it’w work on cross platform such as Linux, FreeBSD, Windows and Mac OSX.
To install it on Ubuntu/Debian:
1. Download googlecl deb file.
2. Install it with this command:
sudo dpkg -i googlecl*.deb
To install it on Windows:
1. Download the googlecl for win32.
2. Extract it and install.
To install it on MAC OSX:
1. Install it from port command:
sudo port install googlecl
For others you can grab the source file, compile and install it:
tar xf googlecl-x.x.x.tar.gz python setup.py install --record=files.txt
Here is the basic example command:
$ google blogger post –title “foo” “command line posting”
$ google calendar add “Lunch with Jim at noon tomorrow”
$ google contacts list Bob name,email > the_bobs.csv
$ google docs edit “Shopping list”
$ google picasa create “Cat Photos” ~/photos/cats/*.jpg
$ google youtube post –category Education killer_robots.avi
With this very useful tools, there is a lot you can do. Like make a software or web application to manage your data in one place, or make an automation tools for it. Just grow your idea and expand your skill. I am myself haven’t explore it in deep. But i will. So stay tunes and i will make another article about googlecl.