GoogleCL: O poder do Google na linha de comando
Dica publicada em Linux / Comandos
GoogleCL: O poder do Google na linha de comando
GoogleCL, um utilitário para terminal baseado em Python. Através dele será possível acessar vários serviços do Google pela linha de comando, como YouTube, Picasa e Blogger, Docs entre outras funcionalidades.
Primeiro vamos baixar e instalar:
# wget http://googlecl.googlecode.com/files/googlecl_0.9.7-1_all.deb
# dpkg -i googlecl_0.9.7-1_all.deb
Exemplos de utilização:
Blogger:
google blogger post --title "foo" "command line posting"
$ google blogger post /home/marius/Documents/How\ to\ Use\ GoogleCL\ in\ Linux.txt
Calendar:
google calendar add "Lunch with Jim at noon tomorrow"
$ google calendar add "Softpedia meeting today at 6pm
Contacts:
google contacts list name,email > contacts.csv
Docs:
google docs edit --title "Shopping list"
Picasa:
google picasa create --title "Cat Photos" ~/photos/cats/*.jpg
$ google picasa create --title "Softpedia Linux Test Photos" /home/marius/Pictures/Wallpapers1/*
YouTube:
google youtube post --category Education killer_robots.avi
$ google youtube delete --title "Softpedia_Test"
$ google youtube post --category Music /home/marius/Videos/Softpedia_Test.wmv
Fonte:
Primeiro vamos baixar e instalar:
# wget http://googlecl.googlecode.com/files/googlecl_0.9.7-1_all.deb
# dpkg -i googlecl_0.9.7-1_all.deb
Exemplos de utilização:
Blogger:
google blogger post --title "foo" "command line posting"
$ google blogger post /home/marius/Documents/How\ to\ Use\ GoogleCL\ in\ Linux.txt
Calendar:
google calendar add "Lunch with Jim at noon tomorrow"
$ google calendar add "Softpedia meeting today at 6pm
Contacts:
google contacts list name,email > contacts.csv
Docs:
google docs edit --title "Shopping list"
Picasa:
google picasa create --title "Cat Photos" ~/photos/cats/*.jpg
$ google picasa create --title "Softpedia Linux Test Photos" /home/marius/Pictures/Wallpapers1/*
YouTube:
google youtube post --category Education killer_robots.avi
$ google youtube delete --title "Softpedia_Test"
$ google youtube post --category Music /home/marius/Videos/Softpedia_Test.wmv
Fonte: