Skip to content

Instantly share code, notes, and snippets.

View chiperific's full-sized avatar

Chip chiperific

View GitHub Profile
@chiperific
chiperific / blogger_to_pdf.py
Created April 12, 2026 21:38
Python script to take Blogger files and generate PDFs
#!/usr/bin/env python3
"""Convert a Google Takeout Blogger export (feed.atom) to individual PDFs."""
# Put this in the directory that contains the exported files from Google Takeout
# You can change `theme-classic.html` to whatever your theme file is called.
# Outputs all files to the `/pdfs` directory.
# Relies on playwright and chromium: `run python3 -m playwright install chromium`
# Command: `python3 blogger_to_pdf.py`. Use `--test` flag to only generate the first PDF
import html