How can I record music from spotify ?
See the instructions given in the link below -
You're really, really not supposed to do this. It's basically piracy. And if you want to pirate, there are easier ways. But you shouldn't, because it's wrong to pirate.
Having said that, if you really must do this (and you really mustn't) you should check out this guide:
You could use Free Sounds Recorder which you can read about at http://www.guidingtech.com/8713/record-audio-or-sounds-with-free-sound-recorder-for-windows/ You just need to know which mixer port the audio is on which is most likely wave out or similar. This free program even has scheduling options unlike many free programs. Good luck.
Recording With Audacity