def stars_and_pull_requests(repo_info):
    """Return total stars and pull requests"""
    try:
        data = repo_info.select('a.muted-link')
        try:
            stars = data[0].text.strip()
        except IndexError:
            stars = None
        try:
            pull_requests = data[1].text.strip()
        except IndexError:
            pull_requests = None
        return stars, pull_requests
    except AttributeError:
        return
