This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |