Settling a discussion from the pub. Yes, you can extract energy from an infinite source of energy. That's allowed.
In this video I am modulating the spring constant. The environment is damped, so I definitely could extract energy.
python main.py