A few Python scripts that I wrote by hand before AI-assisted coding was a viable option. These fun projects all started with a concrete problem (or just a curiosity) and ended with something that actually ran.
A fully autonomous hourly Google Cloud routine that uses three APIs to scrape top Reuters headlines, generate an AI image with DALL·E and write hashtags via ChatGPT, and posts the whole thing to Twitter. These are a few of its actual Tweets. View on GitHub ↗
/tmp and uploads it via Tweepy's media API.When DALL·E first dropped, the images it created were often hilariously bad, and I thought it'd be interesting to imagine a world in which AI interprets and portrays the news in its own whimsical way. The goal was simple: learn how to chain a few APIs together to create an AI newsroom.
A simple tool for verifying NYS OPRA enrollment status for a list of provider NPIs. Reads from a CSV, queries the eMedNY site via Selenium, and saves results to two output files — enrolled and not enrolled. View on GitHub ↗
NPIs.csv using pandas. The column name is configurable to match your file.passed_NPIs.csv. The rest go to failed_NPIs.txt.Verifying OPRA enrollment required staff to open the eMedNY portal and enter each NPI by hand. This script automates the entire loop in order to check hundreds of providers at once. Selenium drives Chrome directly against the site, no API required.
A Python routine that uses the OpenSky Network API to identify flights passing over a lat/lon bounding box, then scrapes SpotterLead for flight details — airline, aircraft model, registration, and origin. View on GitHub ↗
ld+json data for model, registration, airline, and origin airport.My Brooklyn apartment had a clear line of sight to the LGA approach path. After observing the constant stream of planes passing by every day, I thought it'd be cool to know more about the flights. The OpenSky Network offers a free API with real-time state vectors, including aircraft callsigns, which allowed me to look up more info about the flight.