# Activate environmentsource /home/dv/scrapez/.venv/bin/activatecd /home/dv/scrapez/volkslieder/scripts# Full pipeline./run_scrape.sh# Individual stepspython collect_urls.py # π ~12K URLs from sitemapspython scrape_pages.py # π·οΈ Async download (~1h)python convert_to_md.py # π HTML β MD (parallel)python cleanup_v2.py # β¨ Enhanced cleanuppython generate_index.py # π Build search index
π Markdown Format (V2)
---title: "Song Title"url: https://www.volksliederarchiv.de/slug/themes: ["Kinderlieder", "Weihnachtslieder"]periods: ["19. Jahrhundert"]text_author: "Hoffmann von Fallersleben"musik_author: "Volksweise"year: 1840---Song lyrics here...(lexikon links converted to plain text)
π Index Files
index.json - Song Search
{ "title": "Der Mond ist aufgegangen", "path": "abendlieder/der-mond-ist-aufgegangen.md", "url": "https://...", "incipit": "Der Mond ist aufgegangen...", "themes": ["Abendlieder", "Geistliche Lieder"], "text_author": "Matthias Claudius", "musik_author": "Johann Abraham Peter Schulz", "year": 1779}