Back up your wordlist

LESP provides a simple method for backing up your current wordlist state. This is done by calling the backup() method. This method takes in a single argument, path, which is the path to the backup file. If the file does not exist, it will be created. If it does exist, it will be overwritten. The default path is wordlist_backup.

from lesp import Proofreader

proofreader = Proofreader()

proofreader.backup()

If you already have a backup file, you can restore your wordlist to the state of the backup file by calling the restore() method. This method takes in two arguments, overwrite_current and path. overwrite_current is a boolean value that determines whether the current wordlist should be overwritten by the backup file. If overwrite_current is False, the backup file will be appended to the current wordlist. path is the path to the backup file. The default value for overwrite_current is False and the default value for path is wordlist_backup.

from lesp import Proofreader

proofreader = Proofreader()

proofreader.restore()

Last updated