The time now is Sun 19 May 2013, 23:16
All times are UTC - 4 |
| Author |
Message |
neurino

Joined: 15 Oct 2009 Posts: 360
|
Posted: 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.
| Description |
md5sum 122c04e9bf59c48b2ca347aa34c5f5f1
|

Download |
| Filename |
install_googlecl.tar.gz |
| Filesize |
435 Bytes |
| Downloaded |
207 Time(s) |
Last edited by neurino on Fri 03 Sep 2010, 11:09; edited 3 times in total
|
|
Back to top
|
|
 |
neurino

Joined: 15 Oct 2009 Posts: 360
|
Posted: 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
|
|
 |
neurino

Joined: 15 Oct 2009 Posts: 360
|
Posted: 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
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1229 Location: Ukraine
|
Posted: 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
|
|
 |
neurino

Joined: 15 Oct 2009 Posts: 360
|
Posted: Sat 04 Sep 2010, 08:02 Post subject:
|
|
Veery nice!
|
|
Back to top
|
|
 |
|
|
|
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.0471s ][ Queries: 13 (0.0043s) ][ GZIP on ] |