My kia rio 2008 model battery runs down after driving but starts after some mins on 2008 Kia Rio

I bought another batter and it also has the same problem. It stars after leaving the car for some minutes

Asked by for the 2008 Kia Rio
you have a short in your alternator windings thats expanding when engine is hot and is drawing all the power from the battery