TopDownHockey-Scraper 5.0.0__tar.gz → 5.0.2__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-5.0.0/src/TopDownHockey_Scraper.egg-info → topdownhockey_scraper-5.0.2}/PKG-INFO +1 -1
- {topdownhockey_scraper-5.0.0 → topdownhockey_scraper-5.0.2}/setup.cfg +1 -1
- {topdownhockey_scraper-5.0.0 → topdownhockey_scraper-5.0.2}/setup.py +1 -1
- {topdownhockey_scraper-5.0.0 → topdownhockey_scraper-5.0.2}/src/TopDownHockey_Scraper/TopDownHockey_NHL_Scraper.py +7 -5
- {topdownhockey_scraper-5.0.0 → topdownhockey_scraper-5.0.2/src/TopDownHockey_Scraper.egg-info}/PKG-INFO +1 -1
- {topdownhockey_scraper-5.0.0 → topdownhockey_scraper-5.0.2}/LICENSE +0 -0
- {topdownhockey_scraper-5.0.0 → topdownhockey_scraper-5.0.2}/README.md +0 -0
- {topdownhockey_scraper-5.0.0 → topdownhockey_scraper-5.0.2}/pyproject.toml +0 -0
- {topdownhockey_scraper-5.0.0 → topdownhockey_scraper-5.0.2}/src/TopDownHockey_Scraper/TopDownHockey_EliteProspects_Scraper.py +0 -0
- {topdownhockey_scraper-5.0.0 → topdownhockey_scraper-5.0.2}/src/TopDownHockey_Scraper.egg-info/SOURCES.txt +0 -0
- {topdownhockey_scraper-5.0.0 → topdownhockey_scraper-5.0.2}/src/TopDownHockey_Scraper.egg-info/dependency_links.txt +0 -0
- {topdownhockey_scraper-5.0.0 → topdownhockey_scraper-5.0.2}/src/TopDownHockey_Scraper.egg-info/requires.txt +0 -0
- {topdownhockey_scraper-5.0.0 → topdownhockey_scraper-5.0.2}/src/TopDownHockey_Scraper.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = TopDownHockey_Scraper
|
|
3
|
-
version = 5.0.
|
|
3
|
+
version = 5.0.2
|
|
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="5.0.
|
|
12
|
+
version="5.0.2",
|
|
13
13
|
author="Patrick Bacon",
|
|
14
14
|
author_email="patrick.s.bacon@gmail.com",
|
|
15
15
|
description="The TopDownHockey Scraper",
|
|
@@ -2021,7 +2021,7 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
|
|
|
2021
2021
|
for i in range(0, len(game_sections)):
|
|
2022
2022
|
away = game_sections[i].find_all('div', class_='ScoreCell__TeamName ScoreCell__TeamName--shortDisplayName db')[0].contents[0].upper()
|
|
2023
2023
|
home = game_sections[i].find_all('div', class_='ScoreCell__TeamName ScoreCell__TeamName--shortDisplayName db')[1].contents[0].upper()
|
|
2024
|
-
espnid = game_sections[
|
|
2024
|
+
espnid = game_sections[i]['id']
|
|
2025
2025
|
at.append(away)
|
|
2026
2026
|
ht.append(home)
|
|
2027
2027
|
gids.append(espnid)
|
|
@@ -2096,15 +2096,16 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
|
|
|
2096
2096
|
np.where(gamedays.away_team=='LIGHTNING', 'TBL',
|
|
2097
2097
|
np.where(gamedays.away_team=='LEAFS', 'TOR',
|
|
2098
2098
|
np.where(gamedays.away_team=='MAPLE', 'TOR',
|
|
2099
|
+
np.where(gamedays.away_team=='MAPLE LEAFS', 'TOR',
|
|
2099
2100
|
np.where(gamedays.away_team=='CANUCKS', 'VAN',
|
|
2100
2101
|
np.where(gamedays.away_team=='GOLDEN', 'VGK',
|
|
2101
2102
|
np.where(gamedays.away_team=='KNIGHTS', 'VGK',
|
|
2103
|
+
np.where(gamedays.away_team=='GOLDEN KNIGHTS', 'VGK',
|
|
2102
2104
|
np.where(gamedays.away_team=='CAPITALS', 'WSH',
|
|
2103
2105
|
np.where(gamedays.away_team=='JETS', 'WPG',
|
|
2104
2106
|
np.where(gamedays.away_team=='CLUB', 'UTA',
|
|
2105
2107
|
np.where(gamedays.away_team=='HOCKEY', 'UTA', 'mistake'
|
|
2106
|
-
))))))))))))))))))))))))))))))))))))))
|
|
2107
|
-
)
|
|
2108
|
+
)))))))))))))))))))))))))))))))))))))))))
|
|
2108
2109
|
|
|
2109
2110
|
gamedays = gamedays.assign(
|
|
2110
2111
|
home_team = np.where(gamedays.home_team=='DUCKS', 'ANA',
|
|
@@ -2138,15 +2139,16 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
|
|
|
2138
2139
|
np.where(gamedays.home_team=='LIGHTNING', 'TBL',
|
|
2139
2140
|
np.where(gamedays.home_team=='MAPLE', 'TOR',
|
|
2140
2141
|
np.where(gamedays.home_team=='LEAFS', 'TOR',
|
|
2142
|
+
np.where(gamedays.home_team=='MAPLE LEAFS', 'TOR',
|
|
2141
2143
|
np.where(gamedays.home_team=='CANUCKS', 'VAN',
|
|
2142
2144
|
np.where(gamedays.home_team=='GOLDEN', 'VGK',
|
|
2143
2145
|
np.where(gamedays.home_team=='KNIGHTS', 'VGK',
|
|
2146
|
+
np.where(gamedays.home_team=='GOLDEN KNIGHTS', 'VGK',
|
|
2144
2147
|
np.where(gamedays.home_team=='CAPITALS', 'WSH',
|
|
2145
2148
|
np.where(gamedays.home_team=='JETS', 'WPG',
|
|
2146
2149
|
np.where(gamedays.home_team=='CLUB', 'UTA',
|
|
2147
2150
|
np.where(gamedays.home_team=='HOCKEY', 'UTA', 'mistake'
|
|
2148
|
-
))))))))))))))))))))))))))))))))))))))
|
|
2149
|
-
)
|
|
2151
|
+
)))))))))))))))))))))))))))))))))))))))))
|
|
2150
2152
|
|
|
2151
2153
|
gamedays = gamedays[(gamedays.game_date==this_date) & (gamedays.home_team==home_team) & (gamedays.away_team==away_team)]
|
|
2152
2154
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|