83.9 Storing Scraped Data: SQLite, CSV, and MongoDB
Alright, let’s get this data off the ephemeral stage of your script’s memory and onto something with a bit more permanence. You’ve done the hard part—luring the data out of the wilderness of the web. Now we need to build a good, sensible cage for it. We’re going to talk about three classic options: the trusty spreadsheet (CSV), the rock-solid local database (SQLite), and the flexible document store for when you’re feeling fancy (MongoDB). Each has its place, and your choice will depend entirely on what you plan to do with your hard-won loot.