def METHOD_NAME(self, tag, attrs):
    if tag.lower() == "title" and not self.title_tag:
        self.inside_title_tag = True
    elif tag.lower() == "meta" and not self.title_og:
        attrs = dict(attrs)
        if attrs.get("property") == "og:title" and attrs.get("content"):
            self.title_og = attrs.get("content")