Classic Google Sites used to be awesome. Now ... not so much.
This tool helps you export your Classic Google Site into a .docx document, with:
- β One page per site section
- β Headers preserved
- β Bulleted lists retained
- β Easily copy-pasteable into Google Docs
-
Set the site suffix
Openmain.pyand set theSITE_SUFFIXvalue to match your Classic Google Site URL:SITE_SUFFIX = "yoursite" # If your site is https://sites.google.com/site/yoursite/
-
Install dependencies
pip install -r requirements.txt
-
Run the converter
python main.py
-
Open and convert
- Open the generated
yoursite.docxin an office suite (e.g., LibreOffice, Word) - Insert a Table of Contents on the first page
- Save it and upload to Google Docs
- Use
File > Save as Google Docs
- Open the generated
- π§ No auto-generated ToC: You'll need to insert a table of contents manually using a Word processor (LibreOffice, Word, etc.) before uploading to Google Docs.
- π Limited formatting: Only titles, paragraphs, and bullet lists are extracted. No images, sub-headings, or fancy styling. Modify the script if you need richer formatting.
- π Classic Sites only: This script only supports Classic Google Sites (i.e., URLs like
sites.google.com/site/...). It wonβt work with the newer Google Sites format.
Pull requests welcome!
If you know how to:
- Programmatically generate a proper ToC that Google Docs recognizes
- Handle images or sub-headings
- Improve site traversal or formatting fidelity
... feel free to open an issue or submit a PR!