How to use tumblr on terminal?

So, here we go, I have written a tool will enable terminal and Linux lovers to use and post content to your tumblr blog using terminal.

Here’s what you can do with teblr (written in Python and Licensed with Apache v2).

We give you three basic features with three sub-commands:

tumblr post
tumblr edit
tumblr delete

You can post video, link, audio, text, quote and photo on breeze. Also you can edit and delete your posts directly from teminal (although, you’ll have to know the post id for editing and deleting).

1. tumblr post usage:

usage: 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]

optional arguments:
  -h, --help            show this help message and exit
  --photo               Post a photo to your blog
  --text                Post text to your blog
  --quote               Post a quote to your blog
  --link                Post a link to your blog
  --audio               Post an audio to your blog
  --video               Post a video to your blog
  -u URL, --url URL     URL of the data, if any. Available for: photo, audio,
                        video, link
  -f FILE, --file FILE  Path to the file, if any. Available for: photo, audio,
                        video
  --private             Set post visibility to only you
  --draft               Add post to drafts
  --queue               Add post to queue
  -d DATE, --date DATE  Custom post date: dd-mm-yyyy
  -c CAPTION, --caption CAPTION
                        Post caption, if any Available for: photo, audio,
                        video
  -e EDITOR, --editor EDITOR
                        Open default editor for writing your post, if any.
                        Available for: text
  -s SOURCE, --source SOURCE
                        Source of the post, if any. Available for: quote
  -q QUOTE_TEXT, --quote-text QUOTE_TEXT
                        Add quote text as argument. Available for: quote

2. tumblr edit usage:

usage: tumblr edit [-h] -p POST_ID

optional arguments:
  -h, --help            show this help message and exit
  -p POST_ID, --post-id POST_ID
                        ID of the post that has to be edited

3. tumblr delete usage:

usage: tumblr delete [-h] -p POST_ID

optional arguments:
  -h, --help            show this help message and exit
  -p POST_ID, --post-id POST_ID
                        ID of the post that has to be deleted

NOTE: Editor support (-e) and tumblr edit are still under work. Any suggestions are welcome!

Installation

Install pip using the following commands:

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

Install teblr using pip:

$ sudo pip install teblr
Advertisements

Tell us what you think

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s