How to use Tumblr from the terminal with Teblr

Tumblr is a widely used and well-known microblogging platform that allows you to publish texts, images, videos, links, quotes and audio as a tumblelog. For GNU / Linux lovers who also use this platform, we bring you a script that allows them use Tumblr from terminal, this tool is named trembling. use tumblr

What is Teblr?

trembling is a tool of open source, written in python by Vijay Kumar, that allows us use Tumblr from terminal. This great tool has managed to connect to our account using Tumblr OAuth in this way to be able to create, edit and delete post on the microblogging platform.

This tool has the ability to publish post of texts, photos, quotes, link, audio or video with a single command, in addition to being able to edit and delete posts already published.

It offers us three basic functions, with three subcommands that can receive multiple parameters:

tumblr post
tumblr edit
tumblr delete

How to install Teblr?

For install Teblr We must follow the following steps:

Install pip and the necessary dependencies with the following commands:

$ sudo apt-get install python-pip python-dev build-essential 
$ sudo pip install --upgrade pip 
$ sudo pip install --upgrade virtualenv 
$ sudo apt install python-yaml

Install teblr using pip:

$ sudo pip install teblr

How to configure Teblr?

To configure trembling we must execute the following command: tumblr post --text It will automatically generate a window with a series of steps that we must follow, which will allow us to integrate the application with our Tumblr.

The steps are the following:

  • Ir a http://www.tumblr.com/oauth/apps and click on 'Register application':
  • Register the application using the following details:
    application name: tremble
    Application Website: http://nvijaykumar.me/teblr
    Application Description:Tumblr
    Administrative contact email:
    Default callback URL: http://nvijaykumar.me/teblr/
  • This will generate a OAuth Consumer Key or with a Secret Key that you must enter in the terminal when requested.

How to use Teblr?

Once tumblr is configured we can use the following commands

Using tumblr post:

uso: tumblr post [-h]
                   (--photo | --text | --quote | --link | --audio | --video)
                   [-u URL | -f FILE] [--private | --draft | --queue]
                   [-d DATE] [-c CAPTION] [-e EDITOR] [-s SOURCE]
                   [-q QUOTE_TEXT]

argumentos opcionales:
  -h, --help            visualiza las ayuda del comando
  --photo               Publica una foto en tu blog
  --text                Publica un texto en tu blog
  --quote               Publica una cita en tu blog
  --link                Publica un link en tu blog
  --audio               Publica un audio en tu blog
  --video               Publica un video en tu blog
  -u URL, --url URL     URL de los archivos si es externo. Disponible para: 
                        foto, audio, video, link
  -f FILE, --file FILE  Path de los archivos, en caso que sean locales. 
                        Disponibles para: foto, audio,video
  --private             Publicar post privado
  --draft               Añadir post a borradores
  --queue               Añadir post a la cola
  -d DATE, --date DATE  Fecha de publicación personalizada: dd-mm-yyyy
  -c CAPTION, --caption CAPTION                        
  -e EDITOR, --editor EDITOR
  -s SOURCE, --source SOURCE
                        Fuente de la publicación, Disponible para: quote
  -q QUOTE_TEXT, --quote-text QUOTE_TEXT

Using tumblr edit:

uso: tumblr edit [-h] -p POST_ID [-e]

optional arguments:
  -h, --help            visualiza la ayuda del comando
  -p POST_ID, --post-id POST_ID
                        ID del post que se va editar
  -e, --editor          Abrir editor predeterminado para editar tu publicación.
                        Disponible para: text posts

Using tumblr delete:

uso: tumblr delete [-h] -p POST_ID

optional arguments:
  -h, --help            visualiza la ayuda del comando
  -p POST_ID, --post-id POST_ID
                        ID del post que se va a eliminar

To conclude, tell you that this is an excellent way to use Tumblr from the comfort of our console, in addition to clarifying that the configuration process is a little annoying for some but it is due to the same difficulties of the OAuth. In the same way you can always disconnect your Tumblr from the script by deleting the application we have created.

Do not forget to leave your comment if this article helped you or you have any questions.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Amu said

    It seems like a challenge, well, I love trying to do things differently so I'll do my best>.
    very good thing
    regards!