TopDownHockey-Scraper 3.2.7__py3-none-any.whl → 3.2.8__py3-none-any.whl
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/TopDownHockey_EliteProspects_Scraper.py +6 -6
- {TopDownHockey_Scraper-3.2.7.dist-info → TopDownHockey_Scraper-3.2.8.dist-info}/METADATA +1 -1
- TopDownHockey_Scraper-3.2.8.dist-info/RECORD +7 -0
- TopDownHockey_Scraper-3.2.7.dist-info/RECORD +0 -7
- {TopDownHockey_Scraper-3.2.7.dist-info → TopDownHockey_Scraper-3.2.8.dist-info}/LICENSE +0 -0
- {TopDownHockey_Scraper-3.2.7.dist-info → TopDownHockey_Scraper-3.2.8.dist-info}/WHEEL +0 -0
- {TopDownHockey_Scraper-3.2.7.dist-info → TopDownHockey_Scraper-3.2.8.dist-info}/top_level.txt +0 -0
|
@@ -28,10 +28,10 @@ def tableDataText(table):
|
|
|
28
28
|
|
|
29
29
|
headerow = [td.get_text(strip=True) for td in trs[0].find_all('th')] # header row
|
|
30
30
|
if headerow: # if there is a header row include first
|
|
31
|
-
rows.
|
|
31
|
+
rows.append(headerow)
|
|
32
32
|
trs = trs[1:]
|
|
33
33
|
for tr in trs: # for every table row
|
|
34
|
-
rows.
|
|
34
|
+
rows.append([td.get_text(strip=True) for td in tr.find_all('td')]) # data row
|
|
35
35
|
|
|
36
36
|
df_rows = pd.DataFrame(rows[1:], columns=rows[0])
|
|
37
37
|
|
|
@@ -97,7 +97,7 @@ def getskaters(league, year):
|
|
|
97
97
|
# Extract href links in table
|
|
98
98
|
href_row = []
|
|
99
99
|
for link in player_table.find_all('a'):
|
|
100
|
-
href_row.
|
|
100
|
+
href_row.append(link.attrs['href'])
|
|
101
101
|
|
|
102
102
|
# Create data frame, rename and only keep links to players
|
|
103
103
|
df_links = pd.DataFrame(href_row)
|
|
@@ -107,7 +107,7 @@ def getskaters(league, year):
|
|
|
107
107
|
# Add links to players
|
|
108
108
|
df_players['link']=df_links['link']
|
|
109
109
|
|
|
110
|
-
players.
|
|
110
|
+
players.append(df_players)
|
|
111
111
|
|
|
112
112
|
# Wait 3 seconds before going to next
|
|
113
113
|
#time.sleep(1)
|
|
@@ -209,7 +209,7 @@ def getgoalies(league, year):
|
|
|
209
209
|
# Extract href links in table
|
|
210
210
|
href_row = []
|
|
211
211
|
for link in player_table.find_all('a'):
|
|
212
|
-
href_row.
|
|
212
|
+
href_row.append(link.attrs['href'])
|
|
213
213
|
|
|
214
214
|
# Create data frame, rename and only keep links to players
|
|
215
215
|
df_links = pd.DataFrame(href_row)
|
|
@@ -219,7 +219,7 @@ def getgoalies(league, year):
|
|
|
219
219
|
# Add links to players
|
|
220
220
|
df_players['link']=df_links['link']
|
|
221
221
|
|
|
222
|
-
players.
|
|
222
|
+
players.append(df_players)
|
|
223
223
|
|
|
224
224
|
# Wait 3 seconds before going to next
|
|
225
225
|
# time.sleep(1)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
TopDownHockey_Scraper/TopDownHockey_EliteProspects_Scraper.py,sha256=KyQjVTUKLDlnwJb9Sdm6jUaCh6ZxJoq2kEXBHFb1PcM,45374
|
|
2
|
+
TopDownHockey_Scraper/TopDownHockey_NHL_Scraper.py,sha256=vumUGPWrtHOTWltSwKZCJNgKzum9UKr_xh7xX0E9_Fo,153213
|
|
3
|
+
TopDownHockey_Scraper-3.2.8.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
|
4
|
+
TopDownHockey_Scraper-3.2.8.dist-info/METADATA,sha256=ngmt5EJasFMsJyNmTR7iOSK_2VBk_7bY0l3eefOf1zk,5462
|
|
5
|
+
TopDownHockey_Scraper-3.2.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
6
|
+
TopDownHockey_Scraper-3.2.8.dist-info/top_level.txt,sha256=PBd96GLGFq97ZDLd7_4ZCx8_ZFr_wdWKs5SIpGl5xCs,22
|
|
7
|
+
TopDownHockey_Scraper-3.2.8.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
TopDownHockey_Scraper/TopDownHockey_EliteProspects_Scraper.py,sha256=-EPVHQc06W8OcpVoTQvpUH40sjLj9Nwsv1-y3ANrOiQ,45380
|
|
2
|
-
TopDownHockey_Scraper/TopDownHockey_NHL_Scraper.py,sha256=vumUGPWrtHOTWltSwKZCJNgKzum9UKr_xh7xX0E9_Fo,153213
|
|
3
|
-
TopDownHockey_Scraper-3.2.7.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
|
4
|
-
TopDownHockey_Scraper-3.2.7.dist-info/METADATA,sha256=MhGH9lavzF59_ILyFKpgWil9x8IIGTw4zi_bJ1PB0DU,5462
|
|
5
|
-
TopDownHockey_Scraper-3.2.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
6
|
-
TopDownHockey_Scraper-3.2.7.dist-info/top_level.txt,sha256=PBd96GLGFq97ZDLd7_4ZCx8_ZFr_wdWKs5SIpGl5xCs,22
|
|
7
|
-
TopDownHockey_Scraper-3.2.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{TopDownHockey_Scraper-3.2.7.dist-info → TopDownHockey_Scraper-3.2.8.dist-info}/top_level.txt
RENAMED
|
File without changes
|