def clean(elems):
    """
    This method takes a list of scraped selenium web elements
    and filters/ returns only the hrefs leading to publications.
    """

    urls = []
    for elem in elems:
        url = elem.get_attribute("href")
        if 'article' in url and 'pdf' not in url\
                            and 'search' not in url\
                            and 'show=' not in url:
            urls.append(url)
    return urls