1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Google Releases Command Line Tool for Google Services (Blogger, Youtube etc.)

Discussion in 'BlackHat Lounge' started by HoNeYBiRD, Jun 20, 2010.

  1. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    5,905
    Likes Received:
    7,140
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    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.

    GoogleCL is a pure Python application that uses the Python gdata libraries to make Google Data API calls from the command line.

    GoogleCL currently supports the following Google services:
    Blogger
    Calendar
    Contacts
    Docs
    Picasa
    Youtube

    Code:
    http://code.google.com/p/googlecl/
    http://google-opensource.blogspot.com/2010/06/introducing-google-command-line-tool.html

    Example Scripts:


    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
    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

    "We'd love to support more Google services with GoogleCL, but we're currently limited by the availability of gdata APIs.
    Before hacking in our own services, it's probably best if we encourage the gdata teams to add new services (and python interfaces to those new APIs) first" :D

    Download googlecl:
    Code:
    http://code.google.com/p/googlecl/downloads/list
    Download gdata-python-client:
    Code:
    http://code.google.com/p/gdata-python-client/downloads/list
    Have fun! :ponder:
     
    • Thanks Thanks x 2
  2. florflor

    florflor Senior Member

    Joined:
    Mar 9, 2008
    Messages:
    822
    Likes Received:
    307
    Lots of black hat bot possibilities here I hope ;)