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

Penelitian: Sejarah Aceh Sebelum Masa Kesultanan

Oleh E. Edwards McKinnon* Pengantar Pertama-pertama perlu saya jelaskan bagaimana saya dapat memberikan makalah tentang sejarah Aceh ini. Pada tahun 1975, pada waktu saya masih kerja di Medan dan sebelum saya berangkat ke Cornell untuk belajar untuk S2 dan S3, berdasarkan minat saya belajar tentang sejarah Aceh, Alm H. Mohd Said, pemilik Harian Waspada dan penulis buku  Atjeh Sepanjang Abad  men a warkan sebuah kunjungan bersama ke Aceh.  Kami telah mengunjungi beberapa situs2 purbakala sekitar Lhokseumawe maupun Aceh Besar, termasuk desa Lambaro Neujid, atau situs Indrapurwa di Kec. Lambadeuk maupun benteng Indrapatra di desa Ladong dan Benteng Iskandar Muda diseberang dari desa Meunasahkeude di Kec. Mesjid Besar di wilayah Krueng Raya. Pada waktu itu kami tidak sempat melanjutkan perjalanan ke desa Lamreh atau melihat bekas Benteng Inong Bale atau Kuta Lubhok di Ujung Batee Kapal. Pembatalan mengunjungi desa Lamreh pada waktu itu berakibat pada kekeliruan ...

Wisata Greenland Aceh Besar

Wisata Greenland Aceh Besar yang merupakan salah satu spot destinasi yang ada di Aceh menjadi pilihan untuk kegiatan Aceh Blogger Gathering 2015. Acara yang berlangsung 5-6 Desember ini menjadi ajang silaturrahmi, selain blogger juga melibatkan sejumlah komunitas media sosial, video dan fotografi.

Generasi Muda Wajib Tahu! Museum Tsunami Aceh Jadi Pusat Belajar Mitigasi

MUSEUM Tsunami Aceh kembali jadi sorotan. Kali ini, Wakil Menteri Kependudukan dan Pembangunan Keluarga ( Wamen Dukbangga ) atau Wakil Kepala BKKBN , Ratu Ayu Isyana Bagoes Oka , berkunjung langsung untuk melihat bagaimana museum kebanggaan masyarakat Aceh ini terus hidup sebagai pusat edukasi kebencanaan, Kamis, 9 Oktober 2025.  Didampingi Ketua TP PKK Aceh Marlina Usman, kunjungan ini bukan sekadar seremoni. Isyana menegaskan bahwa museum ini punya peran strategis: bukan hanya monumen peringatan tsunami 2004 , tapi juga ruang belajar generasi muda tentang kesiapsiagaan bencana dan ketangguhan keluarga. “Museum ini jadi pengingat dahsyatnya tsunami 2004, sekaligus tempat belajar bagi generasi yang saat itu belum lahir. Mereka perlu tahu apa yang harus dilakukan saat bencana datang,” ujar Isyana, yang juga mengenang pengalamannya meliput langsung Aceh pascatsunami 20 tahun lalu. Kepala UPTD Museum Tsunami Aceh M Syahputra AZ, menyambut hangat kunjungan ini. Ia menegaskan bahw...