+ Post New Thread
Results 1 to 3 of 3
Downloads Thread, GoogleCL - Brings Google services to the command line in Links, Downloads and Scripts; GoogleCL is a command-line utility that provides access to various Google services. It streamlines tasks such as posting to a ...
  1. #1


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,069
    Thank Post
    232
    Thanked 2,719 Times in 2,007 Posts
    Rep Power
    797

    GoogleCL - Brings Google services to the command line

    GoogleCL is a command-line utility that provides access to various Google services. It streamlines tasks such as posting to a Blogger blog, adding events to Calendar, or editing documents on Google Docs.

    Website / Download / System Requirements / Manual / How to setup GoogleCL on Windows

    Google has announced the availability of a new tool called GoogleCL that will allow users to interact with the company's popular Web services directly from the command line. GoogleCL was developed in Python on top of the gdata-python-client library. It's an open-source software project that's hosted on Google Code and distributed under the Apache license.

    Although modern desktop computing is increasingly dominated by graphical user interfaces, command line tools are still extremely useful for rapid interaction, simple programmatic automation, and remote system management. GoogleCL will make Google-hosted data more accessible to common command-line workflows. The GoogleCL tool offers an easy way to pipe your GMail contact list into sed and awk, or use a shell glob to specify which photos and movies to batch upload to Picasa and YouTube. It also supports Blogger, Google Calendar, and Google docs.

    The first time that you access each individual service, it will prompt you for your username and then it will supply an OAuth link that you can copy and paste into a Web browser to complete the authentication process. After initial account configuration, the tool can be used in pipelines and other non-interactive command line workflows.

    For more information about the tool, you can refer to the release announcement that was published this morning in Google's open source blog.
    Source: http://arstechnica.com/open-source/n...b-services.ars


    Examples
    Code:
    Blogger
    google blogger post --tags "GoogleCL, awesome" --title "Test Post" "I'm posting from the command line"
    google blogger post blogpost.txt
    google blogger list title,url-site # List posts
    google blogger delete --title "Test Post"
    google delete --title "Silly post number [0-9]*" # Delete posts matching regex
    google tag --title "Dev post" --tags "Python, software" # label an existing post
    
    Calendar
    google calendar add "Dinner party with George today at 6pm" # add event to calendar
    google calendar today # List events for today only.
    google calendar list --date 2010-06-01,2010-06-30 # List events.
    google calendar delete --title "Dinner party with George" # Delete an event.
    
    Contacts
    google contacts add "J. Random Hacker, jrandom@example.com"
    google contacts list name,email --title "J. Random Hacker"
    google contacts delete --title "J. Random Hacker"
    
    Docs
    google docs delete --title "Evidence"
    google docs edit --title "Shopping list" --editor vim
    google docs get --title "Homework [0-9]*"
    google docs list title,url-direct --delimiter ": " # list docs
    google docs upload the_bobs.csv ~/work/docs_to_share/*
    
    Picasa
    google picasa create --title "Vermont Test" --tags Vermont vermont.jpg
    google picasa get --title "Vermont Test" /path/to/download/folder
    google picasa list title,url-direct --query "A tag"
    google picasa post --title "Vermont Test" ~/old_photos/*.jpg # Add to an album
    google picasa tag --title "Vermont Test" --tags "places"
    google picasa delete --title "Vermont Test" # delete entire album
    
    Youtube
    google youtube post --category Education --devtags GoogleCL killer_robots.avi
    google youtube delete --title "killer_robots.avi"
    google youtube list # list my videos
    google youtube tag -n ".*robot.*" --tags robot

  2. 3 Thanks to Arthur:

    browolf (22nd June 2010), eean (19th June 2010), localzuk (19th June 2010)

  3. #2

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,885
    Thank Post
    518
    Thanked 2,489 Times in 1,930 Posts
    Blog Entries
    24
    Rep Power
    839
    That's brilliant! Scripting stuff to use various google services just got easier. Not sure what i'd use it for yet, but it has potential.

  4. #3
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,527
    Thank Post
    107
    Thanked 89 Times in 75 Posts
    Blog Entries
    46
    Rep Power
    40
    Just trying this out myself. Not sure what to use it for either. it seems to having a problem connecting tho....

    the error is

    socket.error [errno 10060] A Connection failed because the connected party did not properly respond after a period of time, or established connection failed because the connected host has failed to respond
    Last edited by browolf; 22nd June 2010 at 11:04 AM.

SHARE:
+ Post New Thread

Similar Threads

  1. esx command line help
    By ful56_uk in forum Thin Client and Virtual Machines
    Replies: 6
    Last Post: 17th February 2010, 05:04 PM
  2. [Website] Google Shell - command line goodnes for your browsing pleasure
    By SYNACK in forum Jokes/Interweb Things
    Replies: 0
    Last Post: 3rd June 2008, 01:50 AM
  3. NTBackup - Command Line
    By dave.81 in forum Windows
    Replies: 2
    Last Post: 7th May 2008, 09:46 AM
  4. Office Command Line ID
    By alan-d in forum How do you do....it?
    Replies: 4
    Last Post: 23rd April 2008, 10:51 AM
  5. Command LIne
    By wesleyw in forum Windows
    Replies: 4
    Last Post: 12th October 2006, 11:10 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •