The consumption of weed is illegal in public places and you can get fined 500-600 Euros. But the consumption of weed is not illegal in private places as your home or liscenced Cannabis Clubs. The only way to access weed is by joining or becoming a member of a cannabis club. But for that, you must Get an invitation from the club or from an affiliated website like https://hightimesbcn.com/ where you can apply in advance for membership of different clubs get an invitation. Also, you can contact them on Instagram; @hightimesbcn1, and you will get a reply in minutes.