TopDownHockey-Scraper 3.2.3__py3-none-any.whl → 3.2.5__py3-none-any.whl

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.

@@ -1941,9 +1941,79 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
1941
1941
  gamedays.away_team)))))))),
1942
1942
  espn_id = gamedays.espn_id.astype(int))
1943
1943
 
1944
- # Might need to fix later; don't have right home/away teams right now
1944
+ gamedays = gamedays.assign(
1945
+ away_team = np.where(gamedays.away_team=='DUCKS', 'ANA',
1946
+ np.where(gamedays.away_team=='COYOTES', 'ARI',
1947
+ np.where(gamedays.away_team=='BRUINS', 'BOS',
1948
+ np.where(gamedays.away_team=='SABRES', 'BUF',
1949
+ np.where(gamedays.away_team=='FLAMES', 'CGY',
1950
+ np.where(gamedays.away_team=='HURRICANES', 'CAR',
1951
+ np.where(gamedays.away_team=='BLACKHAWKS', 'CHI',
1952
+ np.where(gamedays.away_team=='AVALANCHE', 'COL',
1953
+ np.where(gamedays.away_team=='BLUE', 'CBJ',
1954
+ np.where(gamedays.away_team=='STARS', 'DAL',
1955
+ np.where(gamedays.away_team=='RED', 'DET',
1956
+ np.where(gamedays.away_team=='OILERS', 'EDM',
1957
+ np.where(gamedays.away_team=='PANTHERS', 'FLA',
1958
+ np.where(gamedays.away_team=='KINGS', 'LAK',
1959
+ np.where(gamedays.away_team=='WILD', 'MIN',
1960
+ np.where(gamedays.away_team=='CANADIENS', 'MTL',
1961
+ np.where(gamedays.away_team=='PREDATORS', 'NSH',
1962
+ np.where(gamedays.away_team=='DEVILS', 'NJD',
1963
+ np.where(gamedays.away_team=='ISLANDERS', 'NYI',
1964
+ np.where(gamedays.away_team=='RANGERS', 'NYR',
1965
+ np.where(gamedays.away_team=='SENATORS', 'OTT',
1966
+ np.where(gamedays.away_team=='FLYERS', 'PHI',
1967
+ np.where(gamedays.away_team=='PENGUINS', 'PIT',
1968
+ np.where(gamedays.away_team=='SHARKS', 'SJS',
1969
+ np.where(gamedays.away_team=='KRAKEN', 'SEA',
1970
+ np.where(gamedays.away_team=='BLUES', 'STL',
1971
+ np.where(gamedays.away_team=='LIGHTNING', 'TBL',
1972
+ np.where(gamedays.away_team=='MAPLE', 'TOR',
1973
+ np.where(gamedays.away_team=='CANUCKS', 'VAN',
1974
+ np.where(gamedays.away_team=='GOLDEN', 'VGK',
1975
+ np.where(gamedays.away_team=='CAPITALS', 'WSH',
1976
+ np.where(gamedays.away_team=='JETS', 'WPG', 'mistake'
1977
+ ))))))))))))))))))))))))))))))))
1978
+ )
1979
+
1980
+ gamedays = gamedays.assign(
1981
+ home_team = np.where(gamedays.home_team=='DUCKS', 'ANA',
1982
+ np.where(gamedays.home_team=='COYOTES', 'ARI',
1983
+ np.where(gamedays.home_team=='BRUINS', 'BOS',
1984
+ np.where(gamedays.home_team=='SABRES', 'BUF',
1985
+ np.where(gamedays.home_team=='FLAMES', 'CGY',
1986
+ np.where(gamedays.home_team=='HURRICANES', 'CAR',
1987
+ np.where(gamedays.home_team=='BLACKHAWKS', 'CHI',
1988
+ np.where(gamedays.home_team=='AVALANCHE', 'COL',
1989
+ np.where(gamedays.home_team=='BLUE', 'CBJ',
1990
+ np.where(gamedays.home_team=='STARS', 'DAL',
1991
+ np.where(gamedays.home_team=='RED', 'DET',
1992
+ np.where(gamedays.home_team=='OILERS', 'EDM',
1993
+ np.where(gamedays.home_team=='PANTHERS', 'FLA',
1994
+ np.where(gamedays.home_team=='KINGS', 'LAK',
1995
+ np.where(gamedays.home_team=='WILD', 'MIN',
1996
+ np.where(gamedays.home_team=='CANADIENS', 'MTL',
1997
+ np.where(gamedays.home_team=='PREDATORS', 'NSH',
1998
+ np.where(gamedays.home_team=='DEVILS', 'NJD',
1999
+ np.where(gamedays.home_team=='ISLANDERS', 'NYI',
2000
+ np.where(gamedays.home_team=='RANGERS', 'NYR',
2001
+ np.where(gamedays.home_team=='SENATORS', 'OTT',
2002
+ np.where(gamedays.home_team=='FLYERS', 'PHI',
2003
+ np.where(gamedays.home_team=='PENGUINS', 'PIT',
2004
+ np.where(gamedays.home_team=='SHARKS', 'SJS',
2005
+ np.where(gamedays.home_team=='KRAKEN', 'SEA',
2006
+ np.where(gamedays.home_team=='BLUES', 'STL',
2007
+ np.where(gamedays.home_team=='LIGHTNING', 'TBL',
2008
+ np.where(gamedays.home_team=='MAPLE', 'TOR',
2009
+ np.where(gamedays.home_team=='CANUCKS', 'VAN',
2010
+ np.where(gamedays.home_team=='GOLDEN', 'VGK',
2011
+ np.where(gamedays.home_team=='CAPITALS', 'WSH',
2012
+ np.where(gamedays.home_team=='JETS', 'WPG', 'mistake'
2013
+ ))))))))))))))))))))))))))))))))
2014
+ )
1945
2015
 
1946
- #gamedays = gamedays[(gamedays.game_date==this_date) & (gamedays.home_team==home_team) & (gamedays.away_team==away_team)]
2016
+ gamedays = gamedays[(gamedays.game_date==this_date) & (gamedays.home_team==home_team) & (gamedays.away_team==away_team)]
1947
2017
 
1948
2018
  return(gamedays)
1949
2019
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TopDownHockey_Scraper
3
- Version: 3.2.3
3
+ Version: 3.2.5
4
4
  Summary: The TopDownHockey Scraper
5
5
  Home-page: https://github.com/TopDownHockey/TopDownHockey_Scraper
6
6
  Author: Patrick Bacon
@@ -0,0 +1,7 @@
1
+ TopDownHockey_Scraper/TopDownHockey_EliteProspects_Scraper.py,sha256=-EPVHQc06W8OcpVoTQvpUH40sjLj9Nwsv1-y3ANrOiQ,45380
2
+ TopDownHockey_Scraper/TopDownHockey_NHL_Scraper.py,sha256=ZMkQN-3tLlHX4qAYFgFLYjSoKHauQgre4lk8WCYozpU,152676
3
+ TopDownHockey_Scraper-3.2.5.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
4
+ TopDownHockey_Scraper-3.2.5.dist-info/METADATA,sha256=GmyBTq7cLe_4koVkJxB3WNw2Z8Dikv4JnjHgozVcTGI,5462
5
+ TopDownHockey_Scraper-3.2.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
6
+ TopDownHockey_Scraper-3.2.5.dist-info/top_level.txt,sha256=PBd96GLGFq97ZDLd7_4ZCx8_ZFr_wdWKs5SIpGl5xCs,22
7
+ TopDownHockey_Scraper-3.2.5.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- TopDownHockey_Scraper/TopDownHockey_EliteProspects_Scraper.py,sha256=-EPVHQc06W8OcpVoTQvpUH40sjLj9Nwsv1-y3ANrOiQ,45380
2
- TopDownHockey_Scraper/TopDownHockey_NHL_Scraper.py,sha256=raqTSmhaLnqbHEsWi5O1zuBGRKcmYAzIgjz216zQiPM,148269
3
- TopDownHockey_Scraper-3.2.3.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
4
- TopDownHockey_Scraper-3.2.3.dist-info/METADATA,sha256=1IenE5vOwFMgxGA-t2-YCfjU_RXZd39OxCbgYUidP8U,5462
5
- TopDownHockey_Scraper-3.2.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
6
- TopDownHockey_Scraper-3.2.3.dist-info/top_level.txt,sha256=PBd96GLGFq97ZDLd7_4ZCx8_ZFr_wdWKs5SIpGl5xCs,22
7
- TopDownHockey_Scraper-3.2.3.dist-info/RECORD,,