TopDownHockey-Scraper 3.2.1__tar.gz → 3.2.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-3.2.1/src/TopDownHockey_Scraper.egg-info → topdownhockey_scraper-3.2.2}/PKG-INFO +1 -1
- {topdownhockey_scraper-3.2.1 → topdownhockey_scraper-3.2.2}/setup.cfg +1 -1
- {topdownhockey_scraper-3.2.1 → topdownhockey_scraper-3.2.2}/setup.py +1 -1
- {topdownhockey_scraper-3.2.1 → topdownhockey_scraper-3.2.2}/src/TopDownHockey_Scraper/TopDownHockey_NHL_Scraper.py +3 -1
- {topdownhockey_scraper-3.2.1 → topdownhockey_scraper-3.2.2/src/TopDownHockey_Scraper.egg-info}/PKG-INFO +1 -1
- {topdownhockey_scraper-3.2.1 → topdownhockey_scraper-3.2.2}/LICENSE +0 -0
- {topdownhockey_scraper-3.2.1 → topdownhockey_scraper-3.2.2}/README.md +0 -0
- {topdownhockey_scraper-3.2.1 → topdownhockey_scraper-3.2.2}/pyproject.toml +0 -0
- {topdownhockey_scraper-3.2.1 → topdownhockey_scraper-3.2.2}/src/TopDownHockey_Scraper/TopDownHockey_EliteProspects_Scraper.py +0 -0
- {topdownhockey_scraper-3.2.1 → topdownhockey_scraper-3.2.2}/src/TopDownHockey_Scraper.egg-info/SOURCES.txt +0 -0
- {topdownhockey_scraper-3.2.1 → topdownhockey_scraper-3.2.2}/src/TopDownHockey_Scraper.egg-info/dependency_links.txt +0 -0
- {topdownhockey_scraper-3.2.1 → topdownhockey_scraper-3.2.2}/src/TopDownHockey_Scraper.egg-info/requires.txt +0 -0
- {topdownhockey_scraper-3.2.1 → topdownhockey_scraper-3.2.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 = 3.2.
|
|
3
|
+
version = 3.2.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="3.2.
|
|
12
|
+
version="3.2.2",
|
|
13
13
|
author="Patrick Bacon",
|
|
14
14
|
author_email="patrick.s.bacon@gmail.com",
|
|
15
15
|
description="The TopDownHockey Scraper",
|
|
@@ -1687,7 +1687,9 @@ def scrape_espn_events(espn_game_id, drop_description = True):
|
|
|
1687
1687
|
|
|
1688
1688
|
clock_df = clock_df[~pd.isna(clock_df.clock)]
|
|
1689
1689
|
|
|
1690
|
-
|
|
1690
|
+
# Needed to add .split(',"st":3')[0] for playoffs
|
|
1691
|
+
|
|
1692
|
+
coords_df = pd.DataFrame(json.loads(str(soup).split('plays":')[1].split(',"st":1')[0].split(',"st":2')[0].split(',"st":3')[0]))
|
|
1691
1693
|
|
|
1692
1694
|
clock_df = clock_df.assign(
|
|
1693
1695
|
clock = clock_df.clock.apply(lambda x: x['displayValue'])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|