TopDownHockey-Scraper 4.0.0__tar.gz → 4.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.1
2
2
  Name: TopDownHockey_Scraper
3
- Version: 4.0.0
3
+ Version: 4.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 = 4.0.0
3
+ version = 4.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="4.0.0",
12
+ version="4.0.2",
13
13
  author="Patrick Bacon",
14
14
  author_email="patrick.s.bacon@gmail.com",
15
15
  description="The TopDownHockey Scraper",
@@ -881,6 +881,7 @@ def scrape_html_shifts(season, game_id):
881
881
  'TOMAS POPPERLE',
882
882
  'TOMAS VOKOUN',
883
883
  'TORRIE JUNG',
884
+ 'TRENT MINER',
884
885
  'TRISTAN JARRY',
885
886
  'TROY GROSENICK',
886
887
  'TUUKKA RASK',
@@ -1980,8 +1981,9 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
1980
1981
  np.where(gamedays.away_team=='KNIGHTS', 'VGK',
1981
1982
  np.where(gamedays.away_team=='CAPITALS', 'WSH',
1982
1983
  np.where(gamedays.away_team=='JETS', 'WPG',
1983
- np.where(gamedays.away_team=='CLUB', 'UTA', 'mistake'
1984
- )))))))))))))))))))))))))))))))))))))
1984
+ np.where(gamedays.away_team=='CLUB', 'UTA',
1985
+ np.where(gamedays.away_team=='HOCKEY', 'UTA', 'mistake'
1986
+ ))))))))))))))))))))))))))))))))))))))
1985
1987
  )
1986
1988
 
1987
1989
  gamedays = gamedays.assign(
@@ -2021,8 +2023,9 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
2021
2023
  np.where(gamedays.home_team=='KNIGHTS', 'VGK',
2022
2024
  np.where(gamedays.home_team=='CAPITALS', 'WSH',
2023
2025
  np.where(gamedays.home_team=='JETS', 'WPG',
2024
- np.where(gamedays.home_team=='CLUB', 'UTA', 'mistake'
2025
- )))))))))))))))))))))))))))))))))))))
2026
+ np.where(gamedays.home_team=='CLUB', 'UTA',
2027
+ np.where(gamedays.home_team=='HOCKEY', 'UTA', 'mistake'
2028
+ ))))))))))))))))))))))))))))))))))))))
2026
2029
  )
2027
2030
 
2028
2031
  gamedays = gamedays[(gamedays.game_date==this_date) & (gamedays.home_team==home_team) & (gamedays.away_team==away_team)]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TopDownHockey_Scraper
3
- Version: 4.0.0
3
+ Version: 4.0.2
4
4
  Summary: The TopDownHockey Scraper
5
5
  Home-page: https://github.com/TopDownHockey/TopDownHockey_Scraper
6
6
  Author: Patrick Bacon