TopDownHockey-Scraper 4.0.0__tar.gz → 4.0.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.
- {topdownhockey_scraper-4.0.0/src/TopDownHockey_Scraper.egg-info → topdownhockey_scraper-4.0.1}/PKG-INFO +1 -1
- {topdownhockey_scraper-4.0.0 → topdownhockey_scraper-4.0.1}/setup.cfg +1 -1
- {topdownhockey_scraper-4.0.0 → topdownhockey_scraper-4.0.1}/setup.py +1 -1
- {topdownhockey_scraper-4.0.0 → topdownhockey_scraper-4.0.1}/src/TopDownHockey_Scraper/TopDownHockey_NHL_Scraper.py +6 -4
- {topdownhockey_scraper-4.0.0 → topdownhockey_scraper-4.0.1/src/TopDownHockey_Scraper.egg-info}/PKG-INFO +1 -1
- {topdownhockey_scraper-4.0.0 → topdownhockey_scraper-4.0.1}/LICENSE +0 -0
- {topdownhockey_scraper-4.0.0 → topdownhockey_scraper-4.0.1}/README.md +0 -0
- {topdownhockey_scraper-4.0.0 → topdownhockey_scraper-4.0.1}/pyproject.toml +0 -0
- {topdownhockey_scraper-4.0.0 → topdownhockey_scraper-4.0.1}/src/TopDownHockey_Scraper/TopDownHockey_EliteProspects_Scraper.py +0 -0
- {topdownhockey_scraper-4.0.0 → topdownhockey_scraper-4.0.1}/src/TopDownHockey_Scraper.egg-info/SOURCES.txt +0 -0
- {topdownhockey_scraper-4.0.0 → topdownhockey_scraper-4.0.1}/src/TopDownHockey_Scraper.egg-info/dependency_links.txt +0 -0
- {topdownhockey_scraper-4.0.0 → topdownhockey_scraper-4.0.1}/src/TopDownHockey_Scraper.egg-info/requires.txt +0 -0
- {topdownhockey_scraper-4.0.0 → topdownhockey_scraper-4.0.1}/src/TopDownHockey_Scraper.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = TopDownHockey_Scraper
|
|
3
|
-
version = 4.0.
|
|
3
|
+
version = 4.0.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.0.
|
|
12
|
+
version="4.0.1",
|
|
13
13
|
author="Patrick Bacon",
|
|
14
14
|
author_email="patrick.s.bacon@gmail.com",
|
|
15
15
|
description="The TopDownHockey Scraper",
|
|
@@ -1980,8 +1980,9 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
|
|
|
1980
1980
|
np.where(gamedays.away_team=='KNIGHTS', 'VGK',
|
|
1981
1981
|
np.where(gamedays.away_team=='CAPITALS', 'WSH',
|
|
1982
1982
|
np.where(gamedays.away_team=='JETS', 'WPG',
|
|
1983
|
-
np.where(gamedays.away_team=='CLUB', 'UTA',
|
|
1984
|
-
|
|
1983
|
+
np.where(gamedays.away_team=='CLUB', 'UTA',
|
|
1984
|
+
np.where(gamedays.away_team=='HOCKEY', 'UTA', 'mistake'
|
|
1985
|
+
))))))))))))))))))))))))))))))))))))))
|
|
1985
1986
|
)
|
|
1986
1987
|
|
|
1987
1988
|
gamedays = gamedays.assign(
|
|
@@ -2021,8 +2022,9 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
|
|
|
2021
2022
|
np.where(gamedays.home_team=='KNIGHTS', 'VGK',
|
|
2022
2023
|
np.where(gamedays.home_team=='CAPITALS', 'WSH',
|
|
2023
2024
|
np.where(gamedays.home_team=='JETS', 'WPG',
|
|
2024
|
-
np.where(gamedays.home_team=='CLUB', 'UTA',
|
|
2025
|
-
|
|
2025
|
+
np.where(gamedays.home_team=='CLUB', 'UTA',
|
|
2026
|
+
np.where(gamedays.home_team=='HOCKEY', 'UTA', 'mistake'
|
|
2027
|
+
))))))))))))))))))))))))))))))))))))))
|
|
2026
2028
|
)
|
|
2027
2029
|
|
|
2028
2030
|
gamedays = gamedays[(gamedays.game_date==this_date) & (gamedays.home_team==home_team) & (gamedays.away_team==away_team)]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|