def parse_career_approx_value(response):
    """Parse the amount of approximate value a player has accumulated over their
    career from their profile page."""

    career_approx_value = response.css(
        '[itemscope] p:contains("Weighted Career AV")::text').get()

    if not career_approx_value:
        return 0

    return int(career_approx_value.strip().split(' ')[0])