you can do as mentioned above, but if you want the original bulb and whatnot you need to replace the generator with a battery pack of the same voltage.
First step is to see what voltage the generator generated. It might be stamped on the generator, if not check the bulb. I'm not too familiar...