Menu

How to Find Any Substack Newsletter's Best Posts with Python (2026)
📰

How to Find Any Substack Newsletter's Best Posts with Python (2026)

DEV Community: datascience·Ignacio Baez·6 days ago
#xezgyH8u
#devtodatascience#science#devto#dev#likes
Long article (752 words) — no AI summary yet.
Reading 0:00
15s threshold

Every Substack newsletter has a few posts that got far more likes, comments and restacks than the rest. Those posts tell you what its readers actually want. In this tutorial you will pull every post of any newsletter into Python and rank them, in about 15 lines of code.

You will get, for each post:

Title, subtitle, date and authors

Likes, comments, restacks and word count

Whether it is free or paid

The full text of free posts (great for research or LLM datasets)

Full disclosure: I built the scraper used here. It reads Substack's public data, so you don't need a login or an API key from Substack.

Setup (2 minutes)

Create a free account at apify.com .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.