TopDownHockey-Scraper 3.2.5__py3-none-any.whl → 3.2.7__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.
- TopDownHockey_Scraper/TopDownHockey_NHL_Scraper.py +11 -3
- {TopDownHockey_Scraper-3.2.5.dist-info → TopDownHockey_Scraper-3.2.7.dist-info}/METADATA +1 -1
- TopDownHockey_Scraper-3.2.7.dist-info/RECORD +7 -0
- TopDownHockey_Scraper-3.2.5.dist-info/RECORD +0 -7
- {TopDownHockey_Scraper-3.2.5.dist-info → TopDownHockey_Scraper-3.2.7.dist-info}/LICENSE +0 -0
- {TopDownHockey_Scraper-3.2.5.dist-info → TopDownHockey_Scraper-3.2.7.dist-info}/WHEEL +0 -0
- {TopDownHockey_Scraper-3.2.5.dist-info → TopDownHockey_Scraper-3.2.7.dist-info}/top_level.txt +0 -0
|
@@ -1899,7 +1899,7 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
|
|
|
1899
1899
|
#print(str(i))
|
|
1900
1900
|
for i in range (0, ((len(soup_found)))):
|
|
1901
1901
|
away = soup_found[i]['href'].rsplit('/')[-1].split('-')[0].upper()
|
|
1902
|
-
home = soup_found[i]['href'].rsplit('/')[-1].split('-')[1].upper()
|
|
1902
|
+
home = soup_found[i]['href'].rsplit('/')[-1].split('-')[-1].upper()
|
|
1903
1903
|
espnid = soup_found[i]['href'].rsplit('/')[-2]
|
|
1904
1904
|
at.append(away)
|
|
1905
1905
|
ht.append(home)
|
|
@@ -1951,8 +1951,10 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
|
|
|
1951
1951
|
np.where(gamedays.away_team=='BLACKHAWKS', 'CHI',
|
|
1952
1952
|
np.where(gamedays.away_team=='AVALANCHE', 'COL',
|
|
1953
1953
|
np.where(gamedays.away_team=='BLUE', 'CBJ',
|
|
1954
|
+
np.where(gamedays.away_team=='JACKETS', 'CBJ',
|
|
1954
1955
|
np.where(gamedays.away_team=='STARS', 'DAL',
|
|
1955
1956
|
np.where(gamedays.away_team=='RED', 'DET',
|
|
1957
|
+
np.where(gamedays.away_team=='WINGS', 'DET',
|
|
1956
1958
|
np.where(gamedays.away_team=='OILERS', 'EDM',
|
|
1957
1959
|
np.where(gamedays.away_team=='PANTHERS', 'FLA',
|
|
1958
1960
|
np.where(gamedays.away_team=='KINGS', 'LAK',
|
|
@@ -1969,12 +1971,14 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
|
|
|
1969
1971
|
np.where(gamedays.away_team=='KRAKEN', 'SEA',
|
|
1970
1972
|
np.where(gamedays.away_team=='BLUES', 'STL',
|
|
1971
1973
|
np.where(gamedays.away_team=='LIGHTNING', 'TBL',
|
|
1974
|
+
np.where(gamedays.away_team=='LEAFS', 'TOR',
|
|
1972
1975
|
np.where(gamedays.away_team=='MAPLE', 'TOR',
|
|
1973
1976
|
np.where(gamedays.away_team=='CANUCKS', 'VAN',
|
|
1974
1977
|
np.where(gamedays.away_team=='GOLDEN', 'VGK',
|
|
1978
|
+
np.where(gamedays.away_team=='KNIGHTS', 'VGK',
|
|
1975
1979
|
np.where(gamedays.away_team=='CAPITALS', 'WSH',
|
|
1976
1980
|
np.where(gamedays.away_team=='JETS', 'WPG', 'mistake'
|
|
1977
|
-
))))))))))))))))))))))))))))))))
|
|
1981
|
+
))))))))))))))))))))))))))))))))))))
|
|
1978
1982
|
)
|
|
1979
1983
|
|
|
1980
1984
|
gamedays = gamedays.assign(
|
|
@@ -1987,8 +1991,10 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
|
|
|
1987
1991
|
np.where(gamedays.home_team=='BLACKHAWKS', 'CHI',
|
|
1988
1992
|
np.where(gamedays.home_team=='AVALANCHE', 'COL',
|
|
1989
1993
|
np.where(gamedays.home_team=='BLUE', 'CBJ',
|
|
1994
|
+
np.where(gamedays.home_team=='JACKETS', 'CBJ',
|
|
1990
1995
|
np.where(gamedays.home_team=='STARS', 'DAL',
|
|
1991
1996
|
np.where(gamedays.home_team=='RED', 'DET',
|
|
1997
|
+
np.where(gamedays.home_team=='WINGS', 'DET',
|
|
1992
1998
|
np.where(gamedays.home_team=='OILERS', 'EDM',
|
|
1993
1999
|
np.where(gamedays.home_team=='PANTHERS', 'FLA',
|
|
1994
2000
|
np.where(gamedays.home_team=='KINGS', 'LAK',
|
|
@@ -2006,11 +2012,13 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
|
|
|
2006
2012
|
np.where(gamedays.home_team=='BLUES', 'STL',
|
|
2007
2013
|
np.where(gamedays.home_team=='LIGHTNING', 'TBL',
|
|
2008
2014
|
np.where(gamedays.home_team=='MAPLE', 'TOR',
|
|
2015
|
+
np.where(gamedays.home_team=='LEAFS', 'TOR',
|
|
2009
2016
|
np.where(gamedays.home_team=='CANUCKS', 'VAN',
|
|
2010
2017
|
np.where(gamedays.home_team=='GOLDEN', 'VGK',
|
|
2018
|
+
np.where(gamedays.home_team=='KNIGHTS', 'VGK',
|
|
2011
2019
|
np.where(gamedays.home_team=='CAPITALS', 'WSH',
|
|
2012
2020
|
np.where(gamedays.home_team=='JETS', 'WPG', 'mistake'
|
|
2013
|
-
))))))))))))))))))))))))))))))))
|
|
2021
|
+
))))))))))))))))))))))))))))))))))))
|
|
2014
2022
|
)
|
|
2015
2023
|
|
|
2016
2024
|
gamedays = gamedays[(gamedays.game_date==this_date) & (gamedays.home_team==home_team) & (gamedays.away_team==away_team)]
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
TopDownHockey_Scraper/TopDownHockey_EliteProspects_Scraper.py,sha256=-EPVHQc06W8OcpVoTQvpUH40sjLj9Nwsv1-y3ANrOiQ,45380
|
|
2
|
+
TopDownHockey_Scraper/TopDownHockey_NHL_Scraper.py,sha256=vumUGPWrtHOTWltSwKZCJNgKzum9UKr_xh7xX0E9_Fo,153213
|
|
3
|
+
TopDownHockey_Scraper-3.2.7.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
|
4
|
+
TopDownHockey_Scraper-3.2.7.dist-info/METADATA,sha256=MhGH9lavzF59_ILyFKpgWil9x8IIGTw4zi_bJ1PB0DU,5462
|
|
5
|
+
TopDownHockey_Scraper-3.2.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
6
|
+
TopDownHockey_Scraper-3.2.7.dist-info/top_level.txt,sha256=PBd96GLGFq97ZDLd7_4ZCx8_ZFr_wdWKs5SIpGl5xCs,22
|
|
7
|
+
TopDownHockey_Scraper-3.2.7.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=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,,
|
|
File without changes
|
|
File without changes
|
{TopDownHockey_Scraper-3.2.5.dist-info → TopDownHockey_Scraper-3.2.7.dist-info}/top_level.txt
RENAMED
|
File without changes
|