Medium Post Downloader

Download utility for programatically converting a Medium export archive into a full replica of your content with images

About This Project

Medium-Post-Downloader is a Python command-line tool that converts a Medium data export into a complete, portable archive of blog posts. Medium's built-in export includes only the text of posts and omits images, which are hosted on Medium's CDN domains such as cdn-images-1.medium.com, cdn-images-2.medium.com, and miro.medium.com. The tool parses the exported HTML files, extracts publication dates, downloads each referenced image, and rewrites the HTML to use local image paths. Posts are placed into folders grouped by year, with one folder per post containing its HTML and image files.

The project includes a separate cleaner script that uses a configurable minimum word count, defaulting to 100 words, to identify short comments and responses and move them into an excluded folder, with a dry-run mode available by default. The downloader supports resuming interrupted runs by skipping posts already processed and applies configurable delays between image requests. The codebase is written in Python and runs on Windows, macOS, and Linux, with dependencies managed through a requirements file and a standard virtual environment workflow.

This tool is most useful for Medium writers who want a full local backup of their work, including images, independent of the platform. It may also suit developers or archivists who need to preserve or migrate blog content from Medium into a static, self-hosted format.

Project Details

Explore More Projects