In this thread it’s discussed how to add the seizure annotations to the EDF file, using edf browser (how to load .edf.seizure file of CHB-MIT dataset - #3 by Teuniz). From that, I think you can script cutting out the part that contains the seizures from each EDF file.