Even if your script does not have an accessible URL you need to specify one when registering your application where the spotify authentication API will redirect .