I worry about potential bans from scraping files through this sort of thing.

No files are involved. It's about backing up the metadata -- your playlists, liked songs.

So you can recreate the playlists on another Spotify account or another music service.