Exemplo n.º 1
0
def scrape_toi_setup():
    """
    Creates raw toi folders if need be

    :return:
    """
    for season in range(2005, schedules.get_current_season() + 1):
        organization.check_create_folder(
            organization.get_season_raw_toi_folder(season))
Exemplo n.º 2
0
def get_road_shiftlog_filename(season, game):
    """
    Returns the filename of the parsed toi html road shifts

    :param season: int, current season
    :param game: int, game
    :return: str, /scrape/data/raw/pbp/[season]/[game]H.html
    """
    return os.path.join(organization.get_season_raw_toi_folder(season),
                        str(game) + 'R.html')
Exemplo n.º 3
0
def get_game_raw_toi_filename(season, game):
    """
    Returns the filename of the raw toi folder

    :param season: int, current season
    :param game: int, game

    :return: str, /scrape/data/raw/toi/[season]/[game].zlib
    """
    return os.path.join(organization.get_season_raw_toi_folder(season),
                        str(game) + '.zlib')