Notion trash垃圾箱一键清空

Notion trash垃圾箱一键清空 notion-clear-trash

A small script to clear the trash from Notion

How to Run the Script

  1. Clone the repository
git clone https://github.com/zhousanfu/notion-clear-trash.git
  1. Install requirements
# 安装依赖
pip3 install -r requirements.txt
  1. Run python script
python3 notion-clear-trash.py
# 执行在终端输入 token_v2

How to Retrieve the Auth Token (in Chrome)

浏览器打开notion 开发者模式F12 Cookie里有’token_v2’

  1. Go to notion.so
  2. Open developer tools (hit F12)
  3. Navigate to the Application tab (may be hidden if the developer window is small)
  4. Expand Cookies under the Storage section on the sidebar
  5. Click on ‘https://www.notion.so’ to view all the cookies
  6. Copy the value for the key ‘token_v2’
    在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42452716/article/details/131141011
今日推荐