Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Convert Guestbook

A one-off Python script that converts a semicolon-delimited CSV export into a format suitable for importing into the Gwolle Guestbook WordPress plugin.

What the script changes

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.

Usage

Place a compatible gb.csv next to Converter.py, then run the script with a Python version compatible with its legacy syntax:

python Converter.py

The script writes output.csv in the same directory.

Compatibility note

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.

License

See LICENSE.

About

Convert csv to Gwolle-GB format

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages