Snow Day Fax
Snow Day Fax is a proof-of-concept script that uses Twilio’s fax API to fax the latest Snow Day Prediction to a fax-capable machine.
It doesn’t have a ton of use cases in the real world…but after all it’s an experiment to see if it would work. And yes it did.
—
Lines of code: 41
Languages: Python
Frameworks: Twilio Fax API, Pillow, pysftp, Selenium (that’s 1 framework per 10.25 lines of code!)
Timeframe: One night that I was bored
—
You can view the source code for this project here.
This script does a lot in one. It first uses Selenium to capture the snow day predictor page, converts the image to a PDF using PIL (Twilio Fax API only supports pdf), then asks a number to fax to. Using that number, the Twilio Fax API sends out a real fax containing the predictor page to the number inputted. And that’s the entire script.
Mostly made for the giggles of being able to fax something in the modern days where fax is very obsolete
And yes, it did actually work and fax me a snow day prediction.