ArchiveBox is a self-hosted app that lets you preserve content from websites in a variety of formats.