TopDownHockey-Scraper 3.2.3__tar.gz → 3.2.4__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.
- {topdownhockey_scraper-3.2.3/src/TopDownHockey_Scraper.egg-info → topdownhockey_scraper-3.2.4}/PKG-INFO +1 -1
- {topdownhockey_scraper-3.2.3 → topdownhockey_scraper-3.2.4}/setup.cfg +1 -1
- {topdownhockey_scraper-3.2.3 → topdownhockey_scraper-3.2.4}/setup.py +1 -1
- {topdownhockey_scraper-3.2.3 → topdownhockey_scraper-3.2.4}/src/TopDownHockey_Scraper/TopDownHockey_NHL_Scraper.py +72 -2
- {topdownhockey_scraper-3.2.3 → topdownhockey_scraper-3.2.4/src/TopDownHockey_Scraper.egg-info}/PKG-INFO +1 -1
- {topdownhockey_scraper-3.2.3 → topdownhockey_scraper-3.2.4}/LICENSE +0 -0
- {topdownhockey_scraper-3.2.3 → topdownhockey_scraper-3.2.4}/README.md +0 -0
- {topdownhockey_scraper-3.2.3 → topdownhockey_scraper-3.2.4}/pyproject.toml +0 -0
- {topdownhockey_scraper-3.2.3 → topdownhockey_scraper-3.2.4}/src/TopDownHockey_Scraper/TopDownHockey_EliteProspects_Scraper.py +0 -0
- {topdownhockey_scraper-3.2.3 → topdownhockey_scraper-3.2.4}/src/TopDownHockey_Scraper.egg-info/SOURCES.txt +0 -0
- {topdownhockey_scraper-3.2.3 → topdownhockey_scraper-3.2.4}/src/TopDownHockey_Scraper.egg-info/dependency_links.txt +0 -0
- {topdownhockey_scraper-3.2.3 → topdownhockey_scraper-3.2.4}/src/TopDownHockey_Scraper.egg-info/requires.txt +0 -0
- {topdownhockey_scraper-3.2.3 → topdownhockey_scraper-3.2.4}/src/TopDownHockey_Scraper.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = TopDownHockey_Scraper
|
|
3
|
-
version = 3.2.
|
|
3
|
+
version = 3.2.4
|
|
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="3.2.
|
|
12
|
+
version="3.2.4",
|
|
13
13
|
author="Patrick Bacon",
|
|
14
14
|
author_email="patrick.s.bacon@gmail.com",
|
|
15
15
|
description="The TopDownHockey Scraper",
|
|
@@ -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
|
-
|
|
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 JACKETS', 'CBJ',
|
|
1954
|
+
np.where(gamedays.away_team=='STARS', 'DAL',
|
|
1955
|
+
np.where(gamedays.away_team=='RED WINGS', '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 LEAFS', 'TOR',
|
|
1973
|
+
np.where(gamedays.away_team=='CANUCKS', 'VAN',
|
|
1974
|
+
np.where(gamedays.away_team=='GOLDEN KNIGHTS', '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 JACKETS', 'CBJ',
|
|
1990
|
+
np.where(gamedays.home_team=='STARS', 'DAL',
|
|
1991
|
+
np.where(gamedays.home_team=='RED WINGS', '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 LEAFS', 'TOR',
|
|
2009
|
+
np.where(gamedays.home_team=='CANUCKS', 'VAN',
|
|
2010
|
+
np.where(gamedays.home_team=='GOLDEN KNIGHTS', 'VGK',
|
|
2011
|
+
np.where(gamedays.home_team=='CAPITALS', 'WSH',
|
|
2012
|
+
np.where(gamedays.home_team=='JETS', 'WPG', 'mistake'
|
|
2013
|
+
))))))))))))))))))))))))))))))))
|
|
2014
|
+
)
|
|
1945
2015
|
|
|
1946
|
-
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|