diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


GoogleCL ‘Google Command Line Tool’

GoogleCL is a command-line utility that provides access to various Google services. After installing Python, Google Data APIs Python Client Library and Google CL, you can type commands that let you upload photos to Picasa Web, upload videos to YouTube, publish Blogger posts, add events to Google Calendar, find Gmail contacts, editing documents on Google Docs and more.

It’s not very difficult to install a Python package. For e.g., in Windows you need to extract archive, open the folder in Windows Explorer, shift + right-click in a blank space, select “Open command window here” and type: python setup.py install.

Here’re few commands:

$ 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
$ google calendar add “Meet Mary tomorrow at 10am”
(a simple way to add events to Google Calendar)
$ google picasa get “Album Title” c:\files\picasa\
(download the files from one of your albums)
$ google youtube post –title “Summer in Rome” c:\videos\rome.avi
(upload a video to YouTube)
$ google docs get –title “Reports .*”
(download documents that have titles starting with “Reports” as text files)

More Info: GoogleCL | Examples


Share This Story, Choose Your Platform!