Skip to content

sunset2131/Better-export-for-notion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Better-import-for-notion

作用

对Notion导出的内容进行优化,对文件重命名,将图片和md文件放在单独文件夹,并添加YAML头部,以便导入博客

usage

D:\All\BlogUsePy>python Notion2Better.py -h
usage: Notion2Better.py [-h] --folder_path FOLDER_PATH [--prefix PREFIX] --tags TAGS --category CATEGORY
                        [--image {true,false}]

Optimize exported Notion resources

options:
  -h, --help            show this help message and exit
  --folder_path FOLDER_PATH
                        The folder path where markdown files are located.
  --prefix PREFIX       (Optional) Prefix to be added to the title.
  --tags TAGS           Tags for the markdown files.
  --category CATEGORY   Category for the markdown files.
  --image {true,false}  Whether to add the first image in the folder to the YAML header (true/false).

example

python Notion2Fu.py --prefix Vulnhub --tags [Vulnhub] --image true --category 靶机 --folder_path "D:\System\Downloads\new-blog-test\vulnhub"

改善对Notion导出后的处理

默认导出不做任何处理: image

使用Notion2Better.py做处理后: image

使用Notion2Better.py处理过后添加的YAML头部:

---
title: Vulnhub-billu: b0x
published: 2025-03-09
image: "./image.png"
tags: [Vulnhub]
category: 靶机
draft: false
---

二次开发

工具内容很简单,直接修改即可

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages