from bs4 import BeautifulSoup


def info_from_html(html, name_selector, author_selector):
    """Return a tuple with song's name and author from a page.

    name_selector -> css selector for song's name
    author_selector -> css selector for author's name
    """

    soup = BeautifulSoup(html, 'html.parser')
    name = soup.select(name_selector)[0]
    author = soup.select(author_selector)[0]

    return (name.get_text().strip(), author.get_text().strip())