← All guides

Mohammed Bou-Saber
Mohammed Bou-SaberTested myself · November 2026

Free guide · Carousel script

My carousels are generated in code

No design app. A text file goes in, a Python script gives me the slides. Here's a starter version you can run tonight.

How it works

  1. A text file. One title and one line per slide. Nothing else.
  2. A Python script reads it. It sets the fonts, the colors and the layout.
  3. Chrome takes the picture. Each slide becomes a 1080 × 1350 image, ready to post.

The starter files

This is a short version of the script I use. It makes a clean black carousel with your handle and page numbers. Change the colors, the fonts, the layout: it's yours.

slides.json

{"handle": "@yourhandle", "color": "#d4a24c",
 "slides": [
  {"t": "Your cover line.", "x": "One promise. Three lines max."},
  {"t": "Point one", "x": "One idea per page. Thirty words or fewer."},
  {"t": "Your ask", "x": "One ask on the last page. Just one."}]}

Run it

python3 build.py slides.json

Download both files: build.py · slides.json. You need Python 3 and Google Chrome.

What I add on mine

One idea per slide. If a slide needs two, you have two slides.