It wouldn't work. This filament was newly opened from a dry vacuum. I suspect that if I had left it an hour or two then the shock would not have happened. If you looped the filament round two insulated pulleys then you would indeed have a generator but it's already been invented, Van de Graaf did it some time ago but he used better stuff for the belt.

The shock was big enough to hurt but hardly life threatening.