googlecl-0.9.9

Browsers, email, chat, etc.
Post Reply
Message
Author
User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

googlecl-0.9.9

#1 Post by neurino »

Very nice CLI to manage Google services like:

Blogger

Code: Select all

# google blogger post --title "foo" "command line posting"
Calendar

Code: Select all

# google calendar add "Lunch with Jim at noon tomorrow"
Contacts

Code: Select all

# google contacts list name,email > contacts.csv
Docs

Code: Select all

# google docs edit --title "Shopping list"
Picasa

Code: Select all

# google picasa create --title "Cat Photos" ~/photos/cats/*.jpg
Youtube

Code: Select all

# google youtube post --category Education killer_robots.avi
It comes very handy to upload photos to Picasaweb account without the need of Picasa and I succesfully uploaded a mp4 video thing that's not possible with current version of Picasa for linux nor via the (ridiculous) web interface.

The only dependency is python2.6 or Python2.5

The script below will install setuptools for python (if not already installed, if you have python2.5 just edit the script, row 4 to "...-py2.5.egg" and row 9 to "....org/packages/2.5/s/setuptools...") that comes very handy to install a lot of python packages with ease, than use setuptools' easy_install to install googlecl.

Code: Select all

#!/bin/bash

#change to `py2.5` according to your python version
setuptools="setuptools-0.6c11-py2.6.egg"

#check if easy_install already available
if [ -z `which easy_instrall` ]; then
    #download setuptools
    wget -c -P "/tmp" "http://pypi.python.org/packages/2.6/s/setuptools/${setuptools}#md5=bfa92100bd772d5a213eedd356d64086"

    #set executable
    chmod a+x "/tmp/${setuptools}"

    #install setuptools
    "/tmp/${setuptools}"
fi

#install googlecl and deps using setuptools' easy_install
[ "$?" -eq 0 ] && easy_install googlecl
Important:
if you get a Timestamp error using googlecl just run Puppy Psync once, it worked for me instead of the solution suggested by googlecl FAQ.
Attachments
install_googlecl.tar.gz
md5sum 122c04e9bf59c48b2ca347aa34c5f5f1
(435 Bytes) Downloaded 562 times
Last edited by neurino on Fri 03 Sep 2010, 15:09, edited 3 times in total.

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#2 Post by neurino »

The version in the pet (current 0.9.9) has poor Unicode support and will fail when using not ASCII chars.

A patch have been published

just download it somewhere, open a terminal and run:

Code: Select all

patch `which google` unicode_input.patch
cheers

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#3 Post by neurino »

I changed the pet with a install script since the first was not working, let me know if ti works now, it should install latest version (0.9.10 atm) that the googlecl developer says is available and working through pypi.

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#4 Post by vovchik »

Dear neurino,

I did something similar - but not CLI: http://www.murga-linux.com/puppy/viewto ... 69&t=56869.

With kind regards,
vovchik

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#5 Post by neurino »

vovchik wrote:Dear neurino,

I did something similar - but not CLI: http://www.murga-linux.com/puppy/viewto ... 69&t=56869.

With kind regards,
vovchik
Veery nice! 8)

Post Reply