import requests


def read_data(url_page, parser):
    """
    Call requests.get for a url and return the extracted data.

    Parameters:
        url_page -- url of the Billboard data
        parser -- Instantiated parser (either ParseWeek() or ParseYear().
    """
    req = requests.get(url_page)
    parser.feed(req.text)
    return parser.result