GoogleCL Google Command Line Utility in Python, Access Web Services with Commands

By Shekhar Sahu on

20 June, 2010  at 12:21 AM

Filed Under: , , , , , , , , , , , , , ,

Google Released GoogleCL (Google Command Line)


A day before yesterday Google introduced GoogleCL {Google Command Line} a command line application fully written in Python. GoogleCL is open source and available for free to download. This geeky utility is great for command line & terminal lovers. Similarly on GoogleCL you can access Google services with command lines. Currently you can use services like Google Picasa, Docs, YouTube, Blogger, Calendar, and Contacts with GoogleCL. So from blogging to uploading videos, complete folder of images, updating contacts and calenders, all are just a command line away. see examples-->

From the first day it attracted many developers. If you want to contribute to this project, you can join.

To use this utility you must have python installed in your system even running gdata libraries. Python is a dynamic object oriented programming language, made for general purpose. However it is also used for software development.





Examples



tip: all commands in small letters


Blogger Scripts


1. google blogger post --tags "GoogleCL, Google Command Line, Google, Python, Programming, Programming Language" --title "GoogleCL Google command line python application can access Google web services " "A day before yesterday Google introduced GoogleCL ..."
#description: '--tags' adds the tag to blogpost, '--title' adds the title of blogpost and is followed by the post body.


2. google blogger post blogpost_saved_on_text_file.txt
#description: the above example shows how tho post from an external text file, after 'post' add the address of .txt file.


3. google blogger delete --title "Title of Post to Delete"
#description: this will delete the post by title.


4. google tag --title "Name of Existing Post" --tags "newtag1, newtag2"
#description: this will add tags/lables to the post.

etc.



Picasa Scripts

also see: Top Free Image Hosting & Sharing Solutions
             Why is Picasa more SEO Friendly than Flickr?

1. google picasa create --title "Title of new Picasa Album" --tags newtag1 location_path_of_image.gif
#description: first creating an album '--title' adds the title of album, '--tags' adds tags/labels to the image and is followed by location of image to be uploaded.


2. google picasa get --title "Title of existing Picasa Album" /location_of_folder/folder
#description: this will upload all the images of folder to the album defined (great for uploading complete folders instead of selecting one by one or using picasa desktop)


3. google picasa list title,url-direct --query "A tag to search"
#description: this will list the images matching the query


4. google picasa delete --title "Name of existing album"
#description: this will delete the complete album


5. google picasa tag --title "Name of existing album" --tags "tag1, tag2"
#description: this will label/tag the images of entire album

etc.

more examples coming soon...




Learn More



You can know more about GoogleCL, system requirements, user manual and more hosted by Google on the official page [http://code.google.com/p/googlecl]





Downloads



Download Python [http://python.org/]
Download GoogleCL [http://code.google.com/p/googlecl/downloads/list]



In future GoogleCL will also support Google Search, Buzz, Gmail, Apps,  and more. And we will see many desktop applications which can access and compete tasks from your computer, contributing the cloud computing.

Want more examples? I will post more examples, soon. There are plenty of examples in the official page too.

I enjoyed using GoogleCL, What about you? Did you like GooglCL? Do you program in Python? What more do you want to see?


Make sure you get updates from us, subscribe to RSS feed or follow me on twitter @Shekhar_Sahu

Shekhar Sahu




Hand Picked Must Read Posts



6 comments for this post

GoogleCL seems interesting :) its amazing to see Google coming up with new things.

Posted on June 20, 2010 at 11:52 AM  

@Shabnam GoogleCL is interesting as well as nerdy :€

Posted on June 20, 2010 at 12:21 PM  

Thanks for sharing this new tool, but not for me...

Posted on June 20, 2010 at 1:40 PM  

Hehe... it might be a bit weird to access web services through the command line... but it must be cool! :D

Posted on June 20, 2010 at 9:43 PM  

@techtricks No problem, I hope my other posts are for you :-)


@Pubudu Yeah Pubudu it's for G33Ks (us) who like weired stuffs ;)

Posted on June 20, 2010 at 10:27 PM  

Thanks for sharing this new tool, but not for me...

Posted on November 28, 2010 at 3:34 PM  

Post a Comment

A comment a day keeps the Doctor Away.

We regard if you use your "Real Name"

Top