If you are concerned with the legalities of ripping music from online streaming sites such as Spotify then read on:
Is ripping streamed music illegal?
No. The general consenus is that streaming web radio sites like spotify are legal to rip from for personal use. Nobody has ever been tried in court for this matter. However you may need to check in certain parts of the world with more restrictive laws.
Will I get banned from Spotify for ripping streamed music?
It is impossible for sites and applications like Spotify to know that you are doing this, however ripping music does go against Spotify's terms of service. If you were to publicly announce that you were doing it in some way then they would have every right to ban you. But apart from this they could never know.
Can i pass the ripped songs on to my friends?
Legally, no. This is a form of file sharing. You should only rip for personal use.