How can I be more confident?

I'm a shy, pretty girl. My looks attract guys but I have a hard time keeping them. They usually leave me for another girl and It's always by some girl who is well-liked and really confident.
How can I be more confident?
Post Opinion