import re


def find_keywords(soup):
    """Use BeautifulSoup to find the article search keywords"""
    keywords = []

    # check <meta name=".*keywords">
    tag = soup.find("meta", attrs={"name": re.compile(r".*keywords")})
    if tag and tag["content"]:
        keywords.extend(tag["content"].split(","))

    keywords = [kw.strip() for kw in keywords]
    return keywords