def generate_host_keys(hostname):
    labels = hostname.split('.')
    for i in range(2, len(labels) + 1):
        domain = '.'.join(labels[-i:])
        yield domain
        yield '.' + domain
Yield Chrome keys for `hostname`, from least to most specific.
dataset/ETHPy150Open n8henrie/pycookiecheat/pycookiecheat/pycookiecheat.py/generate_host_keys