TopDownHockey-Scraper 5.0.1__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: TopDownHockey_Scraper
3
- Version: 5.0.1
3
+ Version: 5.0.2
4
4
  Summary: The TopDownHockey Scraper
5
5
  Home-page: https://github.com/TopDownHockey/TopDownHockey_Scraper
6
6
  Author: Patrick Bacon
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = TopDownHockey_Scraper
3
- version = 5.0.1
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.1",
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",
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: TopDownHockey_Scraper
3
- Version: 5.0.1
3
+ Version: 5.0.2
4
4
  Summary: The TopDownHockey Scraper
5
5
  Home-page: https://github.com/TopDownHockey/TopDownHockey_Scraper
6
6
  Author: Patrick Bacon