Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 28 Jul 2014, 08:43
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
googlecl-0.9.9
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Sun 29 Aug 2010, 15:45    Post subject:  googlecl-0.9.9
Subject description: Use (some) Google services from the command line
 

Very nice CLI to manage Google services like:

Blogger
Code:
# google blogger post --title "foo" "command line posting"

Calendar
Code:
# google calendar add "Lunch with Jim at noon tomorrow"

Contacts
Code:
# google contacts list name,email > contacts.csv

Docs
Code:
# google docs edit --title "Shopping list"

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

Youtube
Code:
# 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:
#!/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.
install_googlecl.tar.gz
Description  md5sum 122c04e9bf59c48b2ca347aa34c5f5f1
gz

 Download 
Filename  install_googlecl.tar.gz 
Filesize  435 Bytes 
Downloaded  285 Time(s) 

Last edited by neurino on Fri 03 Sep 2010, 11:09; edited 3 times in total
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Wed 01 Sep 2010, 18:03    Post subject:  

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:
patch `which google` unicode_input.patch


cheers
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Fri 03 Sep 2010, 11:08    Post subject:  

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.
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sat 04 Sep 2010, 06:20    Post subject:  

Dear neurino,

I did something similar - but not CLI: http://www.murga-linux.com/puppy/viewtopic.php?search_id=1238175669&t=56869.

With kind regards,
vovchik
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Sat 04 Sep 2010, 08:02    Post subject:  

vovchik wrote:
Dear neurino,

I did something similar - but not CLI: http://www.murga-linux.com/puppy/viewtopic.php?search_id=1238175669&t=56869.

With kind regards,
vovchik


Veery nice! Cool
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0601s ][ Queries: 13 (0.0097s) ][ GZIP on ]