from typing import List


def get_subs(subs_file='subreddits.txt', blacklist_file='blacklist.txt') -> List[str]:
    """
    Get subs based on a file of subreddits and a file of blacklisted subreddits.

    :param subs_file: List of subreddits. Each sub in a new line.
    :param blacklist_file:  List of blacklisted subreddits. Each sub in a new line.
    :return: List of subreddits filtered with the blacklisted subs.

    **Example files**::

        sub0
        sub1
        sub2
        ...
    """
    # Get subs and blacklisted subs
    subsf = open(subs_file)
    blacklf = open(blacklist_file)
    subs = [b.lower().replace('\n','') for b in subsf.readlines()]
    blacklisted = [b.lower().replace('\n','') for b in blacklf.readlines()]
    subsf.close()
    blacklf.close()

    # Filter blacklisted
    subs_filtered = list(sorted(set(subs).difference(set(blacklisted))))
    return subs_filtered