Last week, Google introduced GoogleCL, a command-line utility that brings Google services to the command line. Yes, now you can access Google services from a command prompt. GoogleCL is a Python application that uses the Python gdata libraries to make Google Data API calls from the command line. You can install it on Linux, Mac and Windows platforms. To use GoogleCL, the only external package you need is gdata-python-client (aka python-gdata) version1.2.4 or later.
GoogleCL currently support the following Google services:
Example: $ google blogger post –title "foo" "command line posting"
Example: $ google calendar add "Lunch with Jim at noon tomorrow"
Example: $ google contacts list name,email > contacts.csv
Example: $ google docs edit –title "Shopping list"
Example: $ google picasa create –title "Cat Photos" ~/photos/cats/*.jpg
Example: $ google youtube post –category Education killer_robots.avi
You can get GoogleCL from the official project site: http://code.google.com/p/googlecl/. Download is available both as standard tarball and .deb package. Note that, the first time you use any of the Google services services via GoogleCL, you’ll need to grant authorization from a web browser.