Is your desire for attention Histrionic personality disorder?!
It is a bad thing to look for attention if that gets in the way of more substantive goals or causes distress to self or others, causing problems with two or more of affect, cognition, interpersonal functioning or impulse control. Do you feel uncomfortable when you are not the centre of attention? This could be a great motivator. You make yourself attractive, and practise good conversation. You build a good career because people pay attention to successful people. Or, you act out a role in all relationships, and behave seductively or provocatively for a more immediate attention hit. This may alienate friends. Then the downer afterwards just gets worse, and you get depressed. You cannot delay gratification.
Your feelings may be rapidly shifting and expressed shallowly- they are real feelings, but their effect is to get attention. That is, you do not consciously choose behaviour to get attention, your preconscious emotional responses pursue it, in maladaptive ways. You may use physical appearance or theatricality to gain attention, and may be easily influenced.
These characteristics are exaggerated from traits which are entirely healthy, or part of the human condition as a social species- we need others.
I googled “need attention” and found psychcentral.
I read this and recognise myself. So I analyse. Am I like this, in a harmful way? Is it harming me? People have conflicting desires and needs, and learn better or worse ways of fulfilling those needs. I analyse too much, because I am good at analysis, or can produce understandings which please me. I feel unsafe, so analyse in an attempt to protect myself. If I can find what desires give me lasting happiness and the optimum way to pursue them, I can be OK. My moral understanding- what I ought to desire- and my ideology, my false understandings of how to get it, get in the way. “This ought to work! They said so!” I say, and double down on my failed course.
Or I go into a sulk.
I don’t feel safe. All my attention then goes on seeking to make myself safe. Perhaps I am really bad at life- I could write how much people achieve that I haven’t- and perhaps as Hardy wrote, the failure has a unique perspective on how to succeed.