Sip, Swig, and Search With Playwright, OpenAI, and MongoDB Atlas Search
Blog post from MongoDB
Anaiya Raisinghani discusses the appeal of "dirty" sodas, a unique beverage trend from Utah, popularized by Swig, which combines soda with cream and flavored syrups. Inspired by the Hulu show "The Secret Lives of Mormon Wives," she explores how to use technology to discover seasonal drink preferences from Swig's menu. The process involves scraping the website using Microsoft's Playwright to handle dynamic content, utilizing OpenAI's Structured Outputs to categorize drinks seasonally, and leveraging MongoDB Atlas Search to filter sodas based on ingredients and cravings. The tutorial provides a detailed guide on implementing these technologies to create a database of Swig's menu items, ultimately showcasing how to find the perfect drink for each season.