import platform
import getpass


def platform_paths() -> str:
    """
    Check which operating system is running and return the corresponding path.

    Returns:
        Path to the index.html file.

    """
    installed_os = platform.system()

    if installed_os == "Darwin" or installed_os == "Windows":
        config_path = f"/Users/{getpass.getuser()}/.config/hackernews/index.html"
    elif installed_os == "Linux":
        config_path = f"/home/{getpass.getuser()}/.config/hackernews/index.html"
    else:
        config_path = "Unknown"

    return config_path