Langsung ke konten utama

GoogleCL Brings Google Services to the Command Line

GoogleCL Brings Google Services to the Command Line
Linux/Mac/Windows: Google's new utility, GoogleCL, allows you to access a handful of Google services from any *nix command line. Google's services are pretty easily accessible in their individual webapps, but if you've got a hankering for the command line, this is awesome.

Having Google's services at your fingertips in the Terminal may not sound super cool, but if you want to incorporate, say, fetching Google Calendar events, Google contacts, Google Docs, or Picasa photos into your scripts, GoogleCL is extremely handy (and long overdue). GoogleCL is a python program that can access and perform a number of actions in Blogger, Calendar, Contacts, Docs, Picasa, and YouTube.

Ubuntu users can download a .deb package and install it right away, though Mac and Windows installation is a bit trickier. If you're the type that will be using GoogleCL, though, it's likely not beyond your skills. Note that before you begin, you'll need Python 2.5 or 2.6 installed, and Windows users will also need previously mentioned Cygwin. Update: It turns out Windows users don't need Cygwin. Here are some Windows-specific tips for installation, though.

Install GoogleCL

Download both the gdata python client library and GoogleCL. Unzip the tarballs or zip files and note the location of the folders (for the below example, I've left mine in ~/Downloads). Then, open up a Terminal window and type the following commands, entering your password when prompted:
cd "~/Downloads/gdata-2.0.10/"
sudo python setup.py install
cd "~/Downloads/googlecl-0.9.5/"
sudo python setup.py install
When you're done, GoogleCL will be installed on your computer. The first time you use it for a service, it will prompt you for your Google username. Type it in and hit enter, after which it will give you a URL that you can copy and paste into your browser to grant GoogleCL access to your account. Once you've done so, go back to the Terminal and hit enter to complete the authorization. You'll have to go through this process for each Google service, but only the first time you use them.


You now have access to a number of different tasks in the aforementioned Google services that you can run in the Terminal or in shell scripts. You can post videos to YouTube, schedule new appointments in Google Calendar, create and edit Google Docs inside Terminal, export your Gmail contacts list, and more. For more information, check out Google's example scripts, as well as GoogleCL's manual page. Hit the link to read more and check out their page on Google Code, and share your favorite applications of these newfound commands in the comments!

POPULAR

Kerajaan Jeumpa, Kerajaan Islam Pertama Nusantara

Teori tentang kerajaan Islam pertama di Nusantara sampai saat ini masih banyak diperdebatkan oleh para peneliti, baik cendekiawan Muslim maupun non Muslim. Umumnya perbedaan pendapat tentang teori ini didasarkan pada teori awal mula masuknya Islam ke Nusantara. Mengenai teori Islamisasi di Nusantara, para ahli sejarah terbagi menjadi 3 kelompok besar, yaitu pendukung (i) Teori Gujarat (ii) Teori Parsia dan (iii) Teori Mekah (Arab). Bukan maksud tulisan ini untuk membahas teori-teori tersebut secara mendetil, namun dari penelitian yang penulis lakukan, maka dapat disimpulkan bahwa Teori Mekkah (Arab) lebih mendekati kebenaran dengan fakta-fakta yang dikemukakan. Teori Mekkah (Arab) hakikatnya adalah koreksi terhadap teori Gujarat dan bantahan terhadap teori Persia. Di antara para ahli yang menganut teori ini adalah T.W. Arnold, Crawfurd, Keijzer, Niemann, De Holander, SMN. Al-Attas, A. Hasymi, dan Hamka. i Arnold menyatakan para pedagang Arab menyebarkan Islam ketika mereka mendo...

Sejarah Huruf Alfabet

Istilah alphabet sebetulnya berasal dari bahasa Semit. Istilah ini terdiri dari dua kata, yaitu aleph yang berarti 'lembu jantan' dan kata beth yang berarti 'rumah'. Konotasi pictografis dari pengertian kedua kata ini menjadi sebutan untuk menunjukkan huruf pertama a (aleph) dan b (beth) dalam urutan huruf-huruf semit (Mario Pei,1971:176). Ini bukan berarti bahwa tulisan tersebut memakai sistem pictografis-ideografis, akan tetapi malah sebaliknya. Orang-Orang Semit mengambil tanda gambar lembu (kepala lembu) dari huruf Hierogliph Mesir tanpa memperdulikan pengertian lembu itu dalam bahasa Mesir sendiri, sedangkan menurut bahasa Semit, lembu itu disebut aleph. Demikian juga dengan tanda gambar rumah yang mereka sebut beth. Kemudian dengan mempergunakan prinsip akroponi, tanda gambar kepala lembu, oleh masyarakat Semit dijadikan tanda untuk bunyi a dan tanda gambar rumah untuk bunyi b. Semua huruf pada alphebt Semit mempunyai konotasi seperti pictografis itu. Daerah y...

Say Cheese: 12 Photos That Should Never Have Been Posted Online

You know the old cliche, a picture is worth a thousand words? Turns out that pictures have been deeply undervalued: A single photo can cost you your reputation, your job, even your freedom--if you post it online. Teachers, principals, firefighters, mayors, university presidents, and everyday people have all discovered the dark side of putting the wrong photos and videos on social networking sites. Sometimes they paid the price in embarrassment. An unlucky handful lost their jobs or landed in jail. The results aren't pretty, but they are sometimes hilarious. Here's our dirty dozen--12 pictures their owners probably wish they could take back. 1. Hey Kevin, Tinker Bell Wants Her Outfit Back It's bad enough to dress up like you're about to slip a dollar under some toothless child's pillow. But former intern Kevin Colvin made it much worse by asking his boss at Anglo Irish Bank if he could take time off for a "family emergency in New York," then flitting o...