← All projects
Completed September 2026

TwitterAutoPost

A small containerized app that posts one random photo a day, taken from a folder on my NAS, to a Twitter/X account — all driven by a single YAML config file.

PythonDockerTwitter APIAutomationSelf-hosted

The idea

I had a folder of photos on my NAS and wanted one random picture posted per day to a Twitter/X account, without ever thinking about it. The result is a small app in a Docker container: turn it on once and it runs itself.

What it does

How it works

The container runs an in-process scheduler: it computes the next occurrence of the configured time in the chosen timezone, sleeps until then, picks an eligible image and posts it. The upload uses Twitter’s v1.1 media endpoint, while the tweet itself goes through the v2 endpoint (via tweepy). On any failure it logs and waits for the next day, so the daemon stays up; restart: unless-stopped brings it back after a reboot.

Design choices

Notes & gotchas

Stack

Python · tweepy · Docker · Twitter/X API