TopDownHockey-Scraper 3.2.4__tar.gz → 3.2.6__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: 3.2.4
3
+ Version: 3.2.6
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 = 3.2.4
3
+ version = 3.2.6
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="3.2.4",
12
+ version="3.2.6",
13
13
  author="Patrick Bacon",
14
14
  author_email="patrick.s.bacon@gmail.com",
15
15
  description="The TopDownHockey Scraper",
@@ -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)
@@ -1950,9 +1950,9 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
1950
1950
  np.where(gamedays.away_team=='HURRICANES', 'CAR',
1951
1951
  np.where(gamedays.away_team=='BLACKHAWKS', 'CHI',
1952
1952
  np.where(gamedays.away_team=='AVALANCHE', 'COL',
1953
- np.where(gamedays.away_team=='BLUE JACKETS', 'CBJ',
1953
+ np.where(gamedays.away_team=='BLUE', 'CBJ',
1954
1954
  np.where(gamedays.away_team=='STARS', 'DAL',
1955
- np.where(gamedays.away_team=='RED WINGS', 'DET',
1955
+ np.where(gamedays.away_team=='RED', 'DET',
1956
1956
  np.where(gamedays.away_team=='OILERS', 'EDM',
1957
1957
  np.where(gamedays.away_team=='PANTHERS', 'FLA',
1958
1958
  np.where(gamedays.away_team=='KINGS', 'LAK',
@@ -1969,9 +1969,9 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
1969
1969
  np.where(gamedays.away_team=='KRAKEN', 'SEA',
1970
1970
  np.where(gamedays.away_team=='BLUES', 'STL',
1971
1971
  np.where(gamedays.away_team=='LIGHTNING', 'TBL',
1972
- np.where(gamedays.away_team=='MAPLE LEAFS', 'TOR',
1972
+ np.where(gamedays.away_team=='MAPLE', 'TOR',
1973
1973
  np.where(gamedays.away_team=='CANUCKS', 'VAN',
1974
- np.where(gamedays.away_team=='GOLDEN KNIGHTS', 'VGK',
1974
+ np.where(gamedays.away_team=='GOLDEN', 'VGK',
1975
1975
  np.where(gamedays.away_team=='CAPITALS', 'WSH',
1976
1976
  np.where(gamedays.away_team=='JETS', 'WPG', 'mistake'
1977
1977
  ))))))))))))))))))))))))))))))))
@@ -1986,9 +1986,9 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
1986
1986
  np.where(gamedays.home_team=='HURRICANES', 'CAR',
1987
1987
  np.where(gamedays.home_team=='BLACKHAWKS', 'CHI',
1988
1988
  np.where(gamedays.home_team=='AVALANCHE', 'COL',
1989
- np.where(gamedays.home_team=='BLUE JACKETS', 'CBJ',
1989
+ np.where(gamedays.home_team=='BLUE', 'CBJ',
1990
1990
  np.where(gamedays.home_team=='STARS', 'DAL',
1991
- np.where(gamedays.home_team=='RED WINGS', 'DET',
1991
+ np.where(gamedays.home_team=='RED', 'DET',
1992
1992
  np.where(gamedays.home_team=='OILERS', 'EDM',
1993
1993
  np.where(gamedays.home_team=='PANTHERS', 'FLA',
1994
1994
  np.where(gamedays.home_team=='KINGS', 'LAK',
@@ -2005,9 +2005,9 @@ def scrape_espn_ids_single_game(game_date, home_team, away_team):
2005
2005
  np.where(gamedays.home_team=='KRAKEN', 'SEA',
2006
2006
  np.where(gamedays.home_team=='BLUES', 'STL',
2007
2007
  np.where(gamedays.home_team=='LIGHTNING', 'TBL',
2008
- np.where(gamedays.home_team=='MAPLE LEAFS', 'TOR',
2008
+ np.where(gamedays.home_team=='MAPLE', 'TOR',
2009
2009
  np.where(gamedays.home_team=='CANUCKS', 'VAN',
2010
- np.where(gamedays.home_team=='GOLDEN KNIGHTS', 'VGK',
2010
+ np.where(gamedays.home_team=='GOLDEN', 'VGK',
2011
2011
  np.where(gamedays.home_team=='CAPITALS', 'WSH',
2012
2012
  np.where(gamedays.home_team=='JETS', 'WPG', 'mistake'
2013
2013
  ))))))))))))))))))))))))))))))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TopDownHockey_Scraper
3
- Version: 3.2.4
3
+ Version: 3.2.6
4
4
  Summary: The TopDownHockey Scraper
5
5
  Home-page: https://github.com/TopDownHockey/TopDownHockey_Scraper
6
6
  Author: Patrick Bacon