Isn't it a little bit like cutting your nose off to spite your face? They don't want the tourists to come but many of the communities heavily rely on the tourism .
I empathise with their plight (I avoid the Spanish resorts and haven't been in twenty years) but if the protests make it so unwelcoming and the tourists all leave in droves, surely they are going to be in an economic disaster with mass unemployment.
Or maybe I am wrong and they have a lot of other industry to capitalise on in the Balearic and Canary Islands so they don't need the money from the tourists.