def getGames(id, mintime, maxtime): data = getData(id, mintime, maxtime) count = data['result']['total_results'] for i in data['result']['matches']: game.parseGame(i['match_id']) newtime = i['start_time'] if count > 25: getGames(id, mintime, newtime)
import game game.parseGame(21694952)