TopDownHockey-Scraper 4.1.4__tar.gz → 4.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of TopDownHockey-Scraper might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: TopDownHockey_Scraper
3
- Version: 4.1.4
3
+ Version: 4.2.1
4
4
  Summary: The TopDownHockey Scraper
5
5
  Home-page: https://github.com/TopDownHockey/TopDownHockey_Scraper
6
6
  Author: Patrick Bacon
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = TopDownHockey_Scraper
3
- version = 4.1.4
3
+ version = 4.2.1
4
4
  author = Patrick Bacon
5
5
  author_email = patrick.s.bacon@gmail.com
6
6
  description = A package built for scraping hockey data from EliteProspects, the NHL's HTML/API reports, and ESPN's XML reports.
@@ -9,7 +9,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
9
9
 
10
10
  setup(
11
11
  name="TopDownHockey_Scraper", # Replace with your own username
12
- version="4.1.4",
12
+ version="4.2.1",
13
13
  author="Patrick Bacon",
14
14
  author_email="patrick.s.bacon@gmail.com",
15
15
  description="The TopDownHockey Scraper",
@@ -492,7 +492,7 @@ def scrape_html_roster(season, game_id):
492
492
  (np.where(roster_df['Name']== "TOMMY NOVAK" , "THOMAS NOVAK",
493
493
  # New guys from 24-25
494
494
  (np.where(roster_df['Name']== "JOSHUA NORRIS" , "JOSH NORRIS",
495
- (np.where(roster_df['Name']== "P.O JOSEPH" , "'PIERRE-OLIVIER JOSEPH",
495
+ (np.where(roster_df['Name']== "P.O JOSEPH" , "PIERRE-OLIVIER JOSEPH",
496
496
  (np.where(roster_df['Name']== "MIKEY EYSSIMONT" , "MICHAEL EYSSIMONT",
497
497
  (np.where(roster_df['Name']== "MATAJ BLAMEL" , "MATAJ BLAMEL",
498
498
  (np.where(roster_df['Name']== "VITTORIO MANCINI" , "VICTOR MANCINI",
@@ -502,7 +502,8 @@ def scrape_html_roster(season, game_id):
502
502
  (np.where(roster_df['Name']== "JOSHUA BROWN" , "JOSH BROWN",
503
503
  (np.where(roster_df['Name']== "JAKE LUCCHINI" , "JACOB LUCCHINI",
504
504
  (np.where(roster_df['Name']== "EMIL LILLEBERG" , "EMIL MARTINSEN LILLEBERG",
505
- roster_df['Name']))))))))))))))))))))))))))))))
505
+ (np.where(roster_df['Name']== "CAMERON ATKINSON" , "CAM ATKINSON",
506
+ roster_df['Name']))))))))))))))))))))))))))))))))
506
507
 
507
508
  roster_df['Name'] = roster_df['Name'].str.normalize('NFKD').str.encode('ascii', errors='ignore').str.decode('utf-8').str.upper()
508
509
 
@@ -628,6 +629,7 @@ def scrape_html_shifts(season, game_id):
628
629
  'DEVON LEVI',
629
630
  'DIMITRI PATZOLD',
630
631
  'DOMINIK HASEK',
632
+ 'DREW COMMESSO',
631
633
  'DREW MACINTYRE',
632
634
  'DUSTIN BUTLER',
633
635
  'DUSTIN TOKARSKI',
@@ -843,6 +845,7 @@ def scrape_html_shifts(season, game_id):
843
845
  'NATHAN SCHOENFELD',
844
846
  'NICK ELLIS',
845
847
  'NICO DAWS',
848
+ 'NIKKE KOKKO',
846
849
  'NIKLAS BACKSTROM',
847
850
  'NIKLAS LUNDSTROM',
848
851
  'NIKLAS SVEDBERG',
@@ -889,6 +892,7 @@ def scrape_html_shifts(season, game_id):
889
892
  'SAMI AITTOKALLIO',
890
893
  'SAMUEL ERSSON',
891
894
  'SAMUEL MONTEMBEAULT',
895
+ 'SAM MONTEMBEAULT',
892
896
  'SCOTT CLEMMENSEN',
893
897
  'SCOTT DARLING',
894
898
  'SCOTT FOSTER',
@@ -936,6 +940,7 @@ def scrape_html_shifts(season, game_id):
936
940
  'VILLE HUSSO',
937
941
  'VITEK VANECEK',
938
942
  'WADE DUBIELEWICZ',
943
+ 'YANIV PERETS',
939
944
  'YANN DANIS',
940
945
  'YAROSLAV ASKAROV',
941
946
  'ZACH FUCALE',
@@ -1208,7 +1213,7 @@ def scrape_html_shifts(season, game_id):
1208
1213
  (np.where(all_shifts['name']== "TOMMY NOVAK" , "THOMAS NOVAK",
1209
1214
  # New guys from 24-25
1210
1215
  (np.where(all_shifts['name']== "JOSHUA NORRIS" , "JOSH NORRIS",
1211
- (np.where(all_shifts['name']== "P.O JOSEPH" , "'PIERRE-OLIVIER JOSEPH",
1216
+ (np.where(all_shifts['name']== "P.O JOSEPH" , "PIERRE-OLIVIER JOSEPH",
1212
1217
  (np.where(all_shifts['name']== "MIKEY EYSSIMONT" , "MICHAEL EYSSIMONT",
1213
1218
  (np.where(all_shifts['name']== "MATAJ BLAMEL" , "MATAJ BLAMEL",
1214
1219
  (np.where(all_shifts['name']== "VITTORIO MANCINI" , "VICTOR MANCINI",
@@ -1218,7 +1223,8 @@ def scrape_html_shifts(season, game_id):
1218
1223
  (np.where(all_shifts['name']== "JOSHUA BROWN" , "JOSH BROWN",
1219
1224
  (np.where(all_shifts['name']== "JAKE LUCCHINI" , "JACOB LUCCHINI",
1220
1225
  (np.where(all_shifts['name']== "EMIL LILLEBERG" , "EMIL MARTINSEN LILLEBERG",
1221
- all_shifts['name']))))))))))))))))))))))))))))))
1226
+ (np.where(all_shifts['name']== "CAMERON ATKINSON" , "CAM ATKINSON",
1227
+ all_shifts['name']))))))))))))))))))))))))))))))))
1222
1228
 
1223
1229
  all_shifts['name'] = all_shifts['name'].str.normalize('NFKD').str.encode('ascii', errors='ignore').str.decode('utf-8').str.upper()
1224
1230
 
@@ -1528,7 +1534,7 @@ def scrape_api_events(game_id, drop_description = True, shift_to_espn = False):
1528
1534
  (np.where(api_events['ep1_name']== "TOMMY NOVAK" , "THOMAS NOVAK",
1529
1535
  # New guys from 24-25
1530
1536
  (np.where(api_events['ep1_name']== "JOSHUA NORRIS" , "JOSH NORRIS",
1531
- (np.where(api_events['ep1_name']== "P.O JOSEPH" , "'PIERRE-OLIVIER JOSEPH",
1537
+ (np.where(api_events['ep1_name']== "P.O JOSEPH" , "PIERRE-OLIVIER JOSEPH",
1532
1538
  (np.where(api_events['ep1_name']== "MIKEY EYSSIMONT" , "MICHAEL EYSSIMONT",
1533
1539
  (np.where(api_events['ep1_name']== "MATAJ BLAMEL" , "MATAJ BLAMEL",
1534
1540
  (np.where(api_events['ep1_name']== "VITTORIO MANCINI" , "VICTOR MANCINI",
@@ -1538,7 +1544,8 @@ def scrape_api_events(game_id, drop_description = True, shift_to_espn = False):
1538
1544
  (np.where(api_events['ep1_name']== "JOSHUA BROWN" , "JOSH BROWN",
1539
1545
  (np.where(api_events['ep1_name']== "JAKE LUCCHINI" , "JACOB LUCCHINI",
1540
1546
  (np.where(api_events['ep1_name']== "EMIL LILLEBERG" , "EMIL MARTINSEN LILLEBERG",
1541
- api_events['ep1_name']))))))))))))))))))))))))))))))
1547
+ (np.where(api_events['ep1_name']== "CAMERON ATKINSON" , "CAM ATKINSON",
1548
+ api_events['ep1_name']))))))))))))))))))))))))))))))))
1542
1549
 
1543
1550
 
1544
1551
  # 21-22 CHANGES
@@ -1912,7 +1919,7 @@ def scrape_espn_events(espn_game_id, drop_description = True):
1912
1919
  (np.where(espn_events['event_player_1']== "TOMMY NOVAK" , "THOMAS NOVAK",
1913
1920
  # New guys from 24-25
1914
1921
  (np.where(espn_events['event_player_1']== "JOSHUA NORRIS" , "JOSH NORRIS",
1915
- (np.where(espn_events['event_player_1']== "P.O JOSEPH" , "'PIERRE-OLIVIER JOSEPH",
1922
+ (np.where(espn_events['event_player_1']== "P.O JOSEPH" , "PIERRE-OLIVIER JOSEPH",
1916
1923
  (np.where(espn_events['event_player_1']== "MIKEY EYSSIMONT" , "MICHAEL EYSSIMONT",
1917
1924
  (np.where(espn_events['event_player_1']== "MATAJ BLAMEL" , "MATAJ BLAMEL",
1918
1925
  (np.where(espn_events['event_player_1']== "VITTORIO MANCINI" , "VICTOR MANCINI",
@@ -1922,7 +1929,8 @@ def scrape_espn_events(espn_game_id, drop_description = True):
1922
1929
  (np.where(espn_events['event_player_1']== "JOSHUA BROWN" , "JOSH BROWN",
1923
1930
  (np.where(espn_events['event_player_1']== "JAKE LUCCHINI" , "JACOB LUCCHINI",
1924
1931
  (np.where(espn_events['event_player_1']== "EMIL LILLEBERG" , "EMIL MARTINSEN LILLEBERG",
1925
- espn_events['event_player_1']))))))))))))))))))))))))))))))
1932
+ (np.where(espn_events['event_player_1']== "CAMERON ATKINSON" , "CAM ATKINSON",
1933
+ espn_events['event_player_1']))))))))))))))))))))))))))))))))
1926
1934
 
1927
1935
 
1928
1936
  espn_events = espn_events.assign(version =
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: TopDownHockey_Scraper
3
- Version: 4.1.4
3
+ Version: 4.2.1
4
4
  Summary: The TopDownHockey Scraper
5
5
  Home-page: https://github.com/TopDownHockey/TopDownHockey_Scraper
6
6
  Author: Patrick Bacon