SYMBOL INDEX (208 symbols across 27 files) FILE: hockey_scraper/cli.py function validate_args (line 10) | def validate_args(user_args): function run_cmd (line 38) | def run_cmd(user_args): function main (line 59) | def main(): FILE: hockey_scraper/nhl/game_scraper.py function check_goalie (line 33) | def check_goalie(row): function get_players_json (line 50) | def get_players_json(game_json): function combine_players_lists (line 94) | def combine_players_lists(json_players, roster_players, game_id): function get_teams_and_players (line 125) | def get_teams_and_players(game_json, roster, game_id): function combine_html_json_pbp (line 146) | def combine_html_json_pbp(json_df, html_df, game_id, date): function combine_espn_html_pbp (line 194) | def combine_espn_html_pbp(html_df, espn_df, game_id, date, away_team, ho... function scrape_pbp_live (line 232) | def scrape_pbp_live(game_id, date, roster, game_json, players, teams, es... function scrape_pbp (line 251) | def scrape_pbp(game_id, date, roster, game_json, players, teams, espn_id... function scrape_shifts (line 303) | def scrape_shifts(game_id, players, date): function scrape_game (line 332) | def scrape_game(game_id, date, if_scrape_shifts): FILE: hockey_scraper/nhl/json_schedule.py function get_schedule (line 15) | def get_schedule(date): function chunk_schedule_calls (line 34) | def chunk_schedule_calls(from_date, to_date): function scrape_schedule (line 61) | def scrape_schedule(date_from, date_to, preseason=False, not_over=False): function get_dates (line 118) | def get_dates(games): FILE: hockey_scraper/nhl/live_scrape.py function set_docs_dir (line 16) | def set_docs_dir(user_dir): function check_date_format (line 29) | def check_date_format(date): class LiveGame (line 45) | class LiveGame: method __init__ (line 67) | def __init__(self, game_id, start_time, home_team, away_team, status, ... method pbp_df (line 105) | def pbp_df(self): method shifts_df (line 112) | def shifts_df(self): method prev_pbp_df (line 119) | def prev_pbp_df(self): method prev_pbp_df (line 126) | def prev_pbp_df(self): method scrape (line 133) | def scrape(self, force=False): method scrape_live_game (line 147) | def scrape_live_game(self, force=False): method is_ongoing (line 214) | def is_ongoing(self): method time_until_game (line 239) | def time_until_game(self): method is_game_over (line 252) | def is_game_over(self, prev=False): method is_intermission (line 266) | def is_intermission(self, prev=False): class ScrapeLiveGames (line 281) | class ScrapeLiveGames: method __init__ (line 292) | def __init__(self, date, preseason=False, if_scrape_shifts=False, paus... method get_games (line 313) | def get_games(self): method get_espn_ids (line 337) | def get_espn_ids(self, games): method update_live_games (line 359) | def update_live_games(self, force=False, sleep_next=False): method sleep_next_game (line 378) | def sleep_next_game(self): method finished (line 400) | def finished(self): FILE: hockey_scraper/nhl/pbp/espn_pbp.py function event_type (line 12) | def event_type(play_description): function get_game_ids (line 27) | def get_game_ids(response): function get_teams (line 43) | def get_teams(response): function get_espn_date (line 82) | def get_espn_date(date): function get_espn_game_id (line 105) | def get_espn_game_id(date, home_team, away_team): function get_espn_game (line 126) | def get_espn_game(date, home_team, away_team, game_id=None): function parse_event (line 160) | def parse_event(event): function parse_espn (line 185) | def parse_espn(espn_xml): function scrape_game (line 215) | def scrape_game(date, home_team, away_team, game_id=None): FILE: hockey_scraper/nhl/pbp/html_pbp.py function cur_game_status (line 11) | def cur_game_status(doc): function get_pbp (line 35) | def get_pbp(game_id): function get_contents (line 58) | def get_contents(game_html): function strip_html_pbp (line 85) | def strip_html_pbp(td): function clean_html_pbp (line 128) | def clean_html_pbp(html): function add_home_zone (line 146) | def add_home_zone(event_dict, home_team): function add_zone (line 181) | def add_zone(event_dict, play_description): function add_type (line 203) | def add_type(event_dict, event, players, home_team): function add_strength (line 220) | def add_strength(event_dict, home_players, away_players): function add_event_team (line 241) | def add_event_team(event_dict, event): function add_period (line 258) | def add_period(event_dict, event): function add_time (line 273) | def add_time(event_dict, event): function add_score (line 290) | def add_score(event_dict, event, current_score, home_team): function get_penalty (line 313) | def get_penalty(play_description, players, home_team): function get_player_name (line 352) | def get_player_name(number, players, team, home_team): function if_valid_event (line 384) | def if_valid_event(event): function return_name_html (line 401) | def return_name_html(info): function shot_type (line 414) | def shot_type(play_description): function parse_fac (line 437) | def parse_fac(description, players, ev_team, home_team): function parse_shot_miss_take_give (line 469) | def parse_shot_miss_take_give(description, players, ev_team, home_team): function parse_hit (line 497) | def parse_hit(description, players, home_team): function parse_block (line 526) | def parse_block(description, players, home_team): function parse_goal (line 558) | def parse_goal(description, players, ev_team, home_team): function parse_penalty (line 593) | def parse_penalty(description, players, home_team): function add_event_players (line 638) | def add_event_players(event_dict, event, players, home_team): function populate_players (line 671) | def populate_players(event_dict, players, away_players, home_players): function parse_event (line 720) | def parse_event(event, players, home_team, current_score): function parse_html (line 756) | def parse_html(html, players, teams): function scrape_pbp (line 790) | def scrape_pbp(game_html, game_id, players, teams): function scrape_game_live (line 824) | def scrape_game_live(game_id, players, teams): function scrape_game (line 838) | def scrape_game(game_id, players, teams): FILE: hockey_scraper/nhl/pbp/json_pbp.py function get_pbp (line 11) | def get_pbp(game_id): function get_teams (line 35) | def get_teams(pbp_json): function change_event_name (line 54) | def change_event_name(event): function parse_event (line 86) | def parse_event(event): function parse_json (line 133) | def parse_json(game_json, game_id): function scrape_game (line 161) | def scrape_game(game_id): FILE: hockey_scraper/nhl/playing_roster.py function get_roster (line 9) | def get_roster(game_id): function get_content (line 30) | def get_content(roster): function fix_name (line 52) | def fix_name(player): function get_coaches (line 68) | def get_coaches(soup): function get_players (line 90) | def get_players(soup): function scrape_roster (line 152) | def scrape_roster(game_id): FILE: hockey_scraper/nhl/scrape_functions.py function print_errors (line 13) | def print_errors(detailed=True): function scrape_list_of_games (line 60) | def scrape_list_of_games(games, if_scrape_shifts, verbose=False): function scrape_schedule (line 100) | def scrape_schedule(from_date, to_date, data_format='pandas', rescrape=F... function scrape_date_range (line 133) | def scrape_date_range(from_date, to_date, if_scrape_shifts, data_format=... function scrape_seasons (line 168) | def scrape_seasons(seasons, if_scrape_shifts, data_format='csv', preseas... function scrape_games (line 214) | def scrape_games(games, if_scrape_shifts, data_format='csv', rescrape=Fa... FILE: hockey_scraper/nhl/shifts/html_shifts.py function get_shifts (line 11) | def get_shifts(game_id): function get_soup (line 39) | def get_soup(shifts_html): function get_teams (line 60) | def get_teams(soup): function analyze_shifts (line 79) | def analyze_shifts(shift, name, team, home_team, player_ids): function parse_html (line 117) | def parse_html(html, player_ids, game_id): function scrape_game (line 169) | def scrape_game(game_id, players): FILE: hockey_scraper/nhl/shifts/json_shifts.py function get_shifts (line 10) | def get_shifts(game_id): function fix_team_tricode (line 35) | def fix_team_tricode(tricode): function parse_shift (line 53) | def parse_shift(shift): function parse_json (line 82) | def parse_json(shift_json, game_id): function scrape_game (line 103) | def scrape_game(game_id): FILE: hockey_scraper/nwhl/game_pbp.py function scrape_page (line 28) | def scrape_page(url): function get_pbp (line 76) | def get_pbp(game_id): function parse_event (line 112) | def parse_event(event, score, teams, date, game_id, players): function parse_json (line 130) | def parse_json(game_json, game_id,): function scrape_pbp (line 184) | def scrape_pbp(game_id): FILE: hockey_scraper/nwhl/scrape_functions.py function print_errors (line 24) | def print_errors(): function scrape_list_of_games (line 39) | def scrape_list_of_games(games): function scrape_games (line 62) | def scrape_games(games, data_format='csv', rescrape=False, docs_dir=None): function scrape_date_range (line 90) | def scrape_date_range(from_date, to_date, data_format='csv', rescrape=Fa... function scrape_seasons (line 128) | def scrape_seasons(seasons, data_format='csv', rescrape=False, docs_dir=... FILE: hockey_scraper/nwhl/scrape_schedule.py function scrape_dynamic (line 19) | def scrape_dynamic(url): function get_schedule (line 42) | def get_schedule(url, name): function get_season_codes (line 69) | def get_season_codes(): function parse_game (line 97) | def parse_game(game, season): function get_season_games (line 144) | def get_season_games(season, season_code): function scrape_dates (line 171) | def scrape_dates(from_date, to_date): function scrape_season (line 201) | def scrape_season(season): FILE: hockey_scraper/utils/merge_pbp_shifts.py function label_priority (line 4) | def label_priority(row): function group_shifts_cols (line 34) | def group_shifts_cols(shifts, type_group_cols): function group_shifts_type (line 63) | def group_shifts_type(shifts, player_cols, player_id_cols): function group_shifts (line 99) | def group_shifts(games_df, shifts): function merge (line 141) | def merge(pbp_df, shifts_df): FILE: hockey_scraper/utils/save_pages.py function create_base_file_path (line 10) | def create_base_file_path(file_info): function is_compressed (line 27) | def is_compressed(file_info): function create_dir_structure (line 39) | def create_dir_structure(dir_name): function create_season_dirs (line 56) | def create_season_dirs(file_info): function check_file_exists (line 75) | def check_file_exists(file_info): function get_page (line 97) | def get_page(file_info): function save_page (line 118) | def save_page(page, file_info): FILE: hockey_scraper/utils/shared.py function fix_name (line 31) | def fix_name(name): function get_team (line 42) | def get_team(team): function convert_tricode (line 49) | def convert_tricode(tri): function custom_formatwarning (line 58) | def custom_formatwarning(msg, *args, **kwargs): function print_error (line 68) | def print_error(msg): function print_warning (line 88) | def print_warning(msg): function get_logger (line 102) | def get_logger(python_file): function log_error (line 126) | def log_error(err, py_file): function get_season (line 139) | def get_season(date): function season_start_bound (line 163) | def season_start_bound(year): function season_end_bound (line 185) | def season_end_bound(year): function convert_to_seconds (line 202) | def convert_to_seconds(minutes): function if_rescrape (line 222) | def if_rescrape(user_rescrape): function add_dir (line 238) | def add_dir(user_dir): function scrape_page (line 275) | def scrape_page(url): function get_file (line 309) | def get_file(file_info, force=False): function check_data_format (line 334) | def check_data_format(data_format): function check_valid_dates (line 348) | def check_valid_dates(from_date, to_date): function to_csv (line 365) | def to_csv(base_file_name, df, league, file_type): FILE: setup.py function read (line 5) | def read(): FILE: tests/test_game_scraper.py function players (line 11) | def players(): function pbp_columns (line 60) | def pbp_columns(): function shifts_columns (line 73) | def shifts_columns(): function test_scrape_game (line 77) | def test_scrape_game(pbp_columns, shifts_columns): function test_combine_players_lists (line 102) | def test_combine_players_lists(players): FILE: tests/test_html_pbp.py function game_id (line 13) | def game_id(): function cleaned_html (line 18) | def cleaned_html(game_id): function pbp_cols (line 23) | def pbp_cols(): function event (line 36) | def event(): function players (line 45) | def players(): function teams (line 97) | def teams(): function current_score (line 102) | def current_score(): function test_parse_event (line 106) | def test_parse_event(event, players, teams, current_score): function test_parse_html (line 128) | def test_parse_html(pbp_cols, players, teams, cleaned_html): function test_get_pbp (line 137) | def test_get_pbp(): function test_get_soup (line 142) | def test_get_soup(): function test_strip_html_pbp (line 147) | def test_strip_html_pbp(): function test_clean_html_pbp (line 152) | def test_clean_html_pbp(): FILE: tests/test_html_shifts.py function shift_cols (line 11) | def shift_cols(): function game_id (line 16) | def game_id(): function player_ids (line 20) | def player_ids(): function shifts_html (line 72) | def shifts_html(): function shifts_dfs (line 78) | def shifts_dfs(shifts_html, player_ids, game_id): function test_get_shifts (line 85) | def test_get_shifts(shifts_html): function test_get_soup (line 94) | def test_get_soup(shifts_html): function test_analyze_shifts (line 112) | def test_analyze_shifts(player_ids): function test_parse_html (line 125) | def test_parse_html(shifts_dfs, shift_cols): function test_scrape_game (line 142) | def test_scrape_game(game_id, player_ids, shifts_dfs, shift_cols): FILE: tests/test_json_pbp.py function test_get_pbp (line 8) | def test_get_pbp(): function test_get_teams (line 14) | def test_get_teams(): function test_parse_json (line 19) | def test_parse_json(): function test_parse_event (line 34) | def test_parse_event(): FILE: tests/test_json_schedule.py function test_get_schedule (line 7) | def test_get_schedule(): function test_scrape_schedule (line 12) | def test_scrape_schedule(): function test_get_dates (line 18) | def test_get_dates(): FILE: tests/test_json_shifts.py function test_get_shifts (line 8) | def test_get_shifts(): function test_scrape_shifts (line 14) | def test_scrape_shifts(): function test_parse_shift (line 29) | def test_parse_shift(): FILE: tests/test_playing_roster.py function scraped_roster (line 9) | def scraped_roster(): function test_fix_name (line 13) | def test_fix_name(): function test_get_players (line 20) | def test_get_players(scraped_roster): function test_get_coaches (line 79) | def test_get_coaches(scraped_roster): function test_scrape_roster (line 88) | def test_scrape_roster(scraped_roster): FILE: tests/test_scrape_functions.py function test_scrape_list_of_games (line 8) | def test_scrape_list_of_games(): FILE: tests/test_shared.py function file_info (line 11) | def file_info(): function test_check_data_format (line 20) | def test_check_data_format(): function test_check_valid_dates (line 31) | def test_check_valid_dates(): function test_convert_to_seconds (line 39) | def test_convert_to_seconds(): function test_get_season (line 45) | def test_get_season(): function test_scrape_page (line 54) | def test_scrape_page(file_info): function test_get_file (line 62) | def test_get_file(file_info): function test_add_dir (line 87) | def test_add_dir():