Everyone says it'd be great to delete social media and be more in touch with the world. Everyone also has excuses for why they won't do it. For me, it was that I didn't want to lose thousands of memories only accessible on Snapchat. SnapArchive is a Python app I built to save about 5 years of photos and videos so I could get off of social media. It turned my data export into an archive sorted by date and by who sent each file, with its own viewer.
This demo uses mock photos and friends, showcasing how easy it is to use and the value it brought me. The numbers in the captions come from my real archive.
Controls: Space pauses, the arrow keys jump between chapters, and the bar under the video jumps anywhere.
Read the walkthrough as text
-
The export
Before deleting Snapchat, I downloaded my data, 22,085 files in 12 folders.
Each name has a date. Who sent it is only in separate index files.
SnapArchive reads all of it into one database first.
-
Who sent what
It finds the sender three ways. First, exact ID matches from chat history.
Second, it reads each video's capture time from the file and matches the snap log within 3 seconds.
Third, days when only one person sent anything. That covered 61% of files.
-
The sorter
I sort the rest myself. In testing, its top 3 guesses had the right friend 87% of the time.
One key per photo, and each choice saves right away.
Sped up, it looks like this. Backtick means same as last, and E favourites a photo. I sorted 2,270 files this way.
Backspace takes back the last one.
-
The archive
Every file ends up dated and in order, July 2021 to August 2026, with month headers.
Chat media gets a folder for each friend or group chat.
Captions and stickers go back on the photos they came with. One click hides them.
-
Fixing the export
Snapchat supposedly cuts videos into 10-second pieces, but 1,442 of 1,448 were complete clips.
A second copy sorted by friend takes 0.02 GB, because it uses hardlinks instead of copies.
Deleting moves files to the Archive. Erasing for good means typing DELETE, and it's logged.
-
Runs anywhere
It runs from a USB stick on any Windows PC, with its own Python.
Photos stream through the app, so they never show up in Windows' recent files.
Stock photos from Unsplash by Ryan Mcguire, Noel Lopez, Elias Carlsson, Justin Leibow, Luke Chesser, Daniel Ebersole, Daniel Robert, müllermarc, Dietmar Becker, Ben Moore, Jassy Onyae, Sebastian Muller, Matthew Skinner, Linh Nguyen, Margaret Barley, Oleg Chursin, Nicholas Swanson, Christopher Sardegna, Ilham Rahmansyah, Steven Spassov, petradr and Florian Klauer. The friends are made up.
- chat_media 17,413
- memories 2,307
- json 22
- + 9 more 2,343
- 2023-01-17_b~EiQSAgQ8LmhW.jpg
- 2023-01-17_media~3B8F2C91A0.mp4
- 2023-01-17_overlay~3B8F2C91A0.png
- 2023-01-18_b~Ag9QzLxR7nVc.jpg
- 2023-01-18_b~Pm2KdV0sWq4E.jpg
- 2023-01-18_media~77D1E4F0B2.mp4
- 2023-01-19_b~Hk3PqZ8vTr1M.jpg
- 2023-01-19_media~A0C93B5E11.mp4
- 2023-01-19_overlay~A0C93B5E11.png
- 2023-01-21_b~Xr6NcW2yLp9D.jpg
Captions come as separate image files
Tier 1
Chat history IDs
The file's ID shows up in a chat message, so the sender is certain.
exact match
Tier 2
Capture time
MP4 header, read in plain Python
moov › mvhd › creation_time
2023-01-17 21:04:33
Snapchat's snap log
21:03:50 Jordan IMAGE
21:04:31 Maya VIDEO
21:07:12 Theo VIDEO
within 3 seconds
Tier 3
One sender that day
If only one person sent anything on a day, the unmatched files from that day are theirs.
Mar 4: only Priya
0% sorted with no input













Who sent this?
5,713 left · Jan 17, 2023 · 9:04 PM
- 1Mayasent 4 snaps that hour
- 2Jordanreplied 2 min later
- 3Lake housegroup chat, active that night
- 4Theosame week
- 5Priyasame month
- ` Same as last
- / Search
- ⌫ Undo
- → Skip
- E Favourite
Saved
SnapArchive
Memories Chat Media ArchiveJanuary 2023
January 2023
February 2023
March 2023
April 2023
Maya
1,906 items★Lake house
1,547 items · group☆Jordan
1,212 items★Theo
884 items☆Priya
637 items☆Sam
402 items☆Lena
291 items☆Hidden
3 friends
Jan 3, 2023 · 4:41 PM · Memories
Captions and stickers
Restored from the export's separate overlay image, matched on date plus ID.
Split videos




One clip, 38.2 s, video and audio checked
Only real chains get joined: each piece starts the moment the last one ends.
Hardlinks
library / by date
2023-01 / IMG_8841.jpg
on disk
one copy of the photo
library / by friend
Maya / IMG_8841.jpg
22 GB library, second copy: 0.02 GB
Archive, then erase
Erase 3,517 files (1.28 GB) for good?
This deletes them from the export itself. A rebuild can't bring them back.
Type DELETE to confirm
Erased and written to the audit log.
- python\ its own Python
- app\
- archive.db
- media\ the export
- snap-archive.bat
127.0.0.1:5111 · this computer only