This workspace converts long-form article drafts into clean CSV files for Notion import.
data/raw/: Original article text blocks (copy/paste input).data/processed/: Output CSV files.schema/: Locked column definitions.logs/: Validation and missing-field tracking.
day_number,title,type_category,content_type,summary,why_it_works,how_they_did_it,my_comment_tip,source_url,image_url
Paste all articles into one file (for example data/raw/batch_01.txt) and separate each article with:
--
Recommended first line per article:
Day 29 - AppSumo Lifetime Deal to Seed Reviews
Optional URLs can appear anywhere in each article, for example:
Source: https://example.com/article
Image: https://example.com/image.png
- Category analysis only (recommended first pass):
python3 scripts/convert_articles.py --input data/raw/batch_01.txt --analyze-only- Generate CSV outputs:
python3 scripts/convert_articles.py --input data/raw/batch_01.txtThe script auto-fills:
day_numberandtitlefromDay X - ...when presenttype_categoryas multi-label values joined by;content_typefrom title framingsummary,why_it_works,how_they_did_it,my_comment_tipfrom freeform sections
data/processed/articles.csv: Main Notion import file.data/processed/articles_readable.csv: Simplified, readable version for Sheets.