Notion trash垃圾箱一键清空 notion-clear-trash
A small script to clear the trash from Notion
How to Run the Script
- Clone the repository
git clone https://github.com/zhousanfu/notion-clear-trash.git
- Install requirements
# 安装依赖
pip3 install -r requirements.txt
- Run python script
python3 notion-clear-trash.py
# 执行在终端输入 token_v2
How to Retrieve the Auth Token (in Chrome)
浏览器打开notion 开发者模式F12 Cookie里有’token_v2’
- Go to notion.so
- Open developer tools (hit F12)
- Navigate to the Application tab (may be hidden if the developer window is small)
- Expand Cookies under the Storage section on the sidebar
- Click on ‘https://www.notion.so’ to view all the cookies
- Copy the value for the key ‘token_v2’