The Mac version of Weizhi Notes cannot use full-text search when there is no network. If you go to participate in a CTF offline competition and are blocked from the Internet, you won't be able to search your notes and you can only make up your mind.
After analyzing the storage of Weizhi notes, the format is very simple. SQLite is used to store metadata. Then each note is actually compressed by ZIP, and the html and web page images are packed into a compressed package. Since it's so simple, it's better to develop a full-text search function yourself. At first, I considered modifying the client open source code of Weizhi Notes, but it was written in C++, I couldn’t understand it, and I was too lazy to modify it. I finally chose to write a website in Python, and used whoosh and jieba word segmentation to establish an offline search function. .
Note: If you want to run index.py to recreate the index, please stop app.py first