from typing import List
import configparser


def kafka_topics(config_path: str) -> List:
    """Read configuration from config.ini file and returns a
    list of kafka topics to be consumed.

    Args:
        config_path (str): The path for the config.ini file.

    Returns:
        List: of Kafka topics
    """

    config = configparser.ConfigParser()
    config.read(config_path)

    topics = []
    for c in config.sections():
        if c.startswith("website_"):
            topic = c.replace("website_", "")
            topics.append(topic)

    return topics