A one-off Python script that converts a semicolon-delimited CSV export into a format suitable for importing into the Gwolle Guestbook WordPress plugin.
Converter.py reads gb.csv, then:
- removes the input header row;
- converts the date and time fields to a Unix timestamp;
- sets spam, checked, and trash status values;
- escapes double quotes in guestbook content; and
- writes selected fields to
output.csv.
Place a compatible gb.csv next to Converter.py, then run the script with a Python version compatible with its legacy syntax:
python Converter.pyThe script writes output.csv in the same directory.
This is an older personal migration script and uses Python 2-era features such as rU file mode and itertools.imap. It may need small updates before running under modern Python 3. Always keep a backup of the source CSV and validate the generated file before importing it into WordPress.
See LICENSE.