Substack Archiver: A Python Program to Archive Your Favorite Substack Posts

1 minute read

If you are an avid reader of Substack newsletters, you might have come across a situation where you wanted to access some of your favorite posts offline. Substack doesn’t provide a feature to download individual posts from your favorite newsletters.

This is where Substack Archiver comes in handy. It is a Python program that allows you to dump all posts from your favorite Substack newsletters and save them as separate HTML files. It also creates multiple JSON dumps with metadata for each post.

Substack Archiver

How Substack Archiver Works

Substack Archiver works by communicating with the Substack API. It uses the API to retrieve all the posts from your subscribed newsletters and saves them as HTML files on your local machine. The program also creates a JSON dump for each post, which includes metadata such as the post title, author, date, and URL.

The program is written in Python, which makes it easy to customize and extend according to your needs. You can modify the program to retrieve only specific newsletters or posts based on your preferences.

How to Use Substack Archiver

To use Substack Archiver, you need to have Python installe. Follow these simple steps on my GitHub repository to get started.

Once the program has completed, you will find all the archived posts in separate HTML files and JSON dumps in the output directory specified in the program.