def extract_metas(bs4):
    """Extracting meta tags from BeautifulSoup object

    :param bs4: `BeautifulSoup`
    :return: `list` List of meta tags
    """

    meta_tags = []

    metas = bs4.select('meta')

    for meta in metas:

        meta_content = {}

        meta_attrs = [
            'charset',
            'name',
            'content',
            'property',
            'http-equiv',
            'itemprop'
        ]

        for attr in meta_attrs:
            if meta.has_attr(attr):
                meta_content.update({attr: meta[attr]})

        meta_tags.append(meta_content)

    return meta_tags
Extracting meta tags from BeautifulSoup object

    :param bs4: `BeautifulSoup`
    :return: `list` List of meta tags