Playing Bad Apple in the Terminal with a Python Script
· Tech · Python / ASCII Art / Terminal
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.
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