Very bare-bones interactive tumblr client for making posts.
- Make text, chat, link and quote posts with tags!
- HTML input allowed in the post body, except for chat posts.
- Post privacy options: published, draft, queue and private.
- Photo, photoset, video and audio posts
- A message showing success or failure
- An error message if you aren't authenticated
- Make sure you have python >= 3.6 installed with the
venv
module (this is sometimes listed in package managers aspython3-venv
). - Clone this repository:
git clone https://github.com/pianycist/tumblr-cli.git
- Create a new python virtual environment, e.g.
python3 -m venv tumblr-venv
- Activate the new virtual environment, e.g.
source tumblr-venv/bin/activate
(if using bash). If your shell is not bash, examine the contents oftumblr-venv/bin
for the appropriate script, e.g.source tumblr-venv/bin/activate.fish
if you are using fish. - Enter the
tumblr-cli
directory:cd tumblr-cli
- Execute
pip3 install -r requirements.txt
.
- Register a new application with tumblr. The application website can be anything: I just input
https://metapianycist.tumblr.com
for it. For the default callback URL, puthttp://127.0.0.1/
. Input the consumer key and consumer secret into the correct places inconfiguration.py
. - Open the Tumblr API Console, input your consumer key and consumer secret, and click Authenticate. When it has authenticated you, click "Show keys" in the upper righthand corner. Copy the keys into the correct places in
configuration.py
. - Fill in your username in the selected_blog area.
- Make sure each token in
configuration,.py
is surrounded with double quotes. (I just started learning python a few months ago on my own in my spare time and I haven't figured out how to get around this limitation yet.)
- Activate the virtual environment you created.
cd tumblr-cli
python3 tumblrclient.py
- The script will ask you to input things. Title and tags can be left blank.
- You can cancel a post in progress at any time before entering tags by pressing CTRL+C.