def set(self, doc, key, tag_key=None, array=False):
        value = doc.meta.namespaces['og'].get(key)
        if not value and tag_key:
            value = doc.meta.get(tag_key)
            if value and array:
                value = value.split(', ')
        if value:
            key = 'og:%s' % key
            if not isinstance(value, (tuple, list)):
                value = (value,)
            if not array:
                value = value[:1]
            for v in value:
                doc.head.add_meta(property=key, content=v)
Set a key in the doc meta tags
dataset/ETHPy150Open quantmind/lux/lux/extensions/oauth/ogp.py/OGPType.set