Playing Bad Apple in the Terminal with a Python Script

· Tech · Python / ASCII Art / Terminal

Translated from Chinese · Check corrections against the original · 中文原文

Bad Apple character animation playing in a terminal
Play the embedded web version

I used a Python script to serve the Bad Apple character animation. Nothing needs to be installed: open a terminal and watch.

Demo

Command line:

curl https://badapple.fujisaki.top

The command line requires HTTPS.

Web: badapple.fujisaki.top

Development

The principle is to convert the video into character frames with Python, then have the server send the frames one after another as a continuous stream of characters, so the terminal keeps refreshing.

In theory a static deployment would also work, but it would need a shell script, and users may have security concerns about running it.

GitHub: HungryNeko/cli-video