import re


def extract_points_from(result):
  """
  Expected line: "Unlocked 31/50 Git Achievements for 248 points"
  """
  pattern = re.compile(r'[^0-9]*Unlocked[^0-9]+(\d+)[^0-9]+(\d+)[^0-9]+(\d+)')
  for line in result.readlines():
    match = pattern.search(line)
    if match:
      return [int(n) for n in match.groups()]
  return None