Kuomintang secured a second term as mayor of Taipei while the Democratic Progressive Party won at least nine cities and counties in the local elections.