I’m a student of the University of Barcelona, and as I see it, the university is one of the best in Spain because the professors are willing to help you if you send them a mail writing the problem or if you speak to them in person. Besides that, you have great installations, and the university itself is ranked the best university of Spain internationally in many rankings. Speaking of other things, the location is not the best because it’s not located near the centre of Barcelona, unlike the UPF, but it’s not the worst location because the UAB is the worst located. To sum up, I would recommend the UB if you lived in Barcelona instead of the other universities in the city itself.