Skip to content

Commit d03d550

Browse files
Update pandas_read_html_for_webscraping.ipynb
1 parent 53e0903 commit d03d550

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

python/pandas_read_html_for_webscraping.ipynb

+5-5
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565
"source": [
6666
"# The Building Blocks\n",
6767
"year = '2019'\n",
68-
"str = 'https://www.basketball-reference.com/leagues/NBA_{}_per_game.html'\n",
68+
"url_link = 'https://www.basketball-reference.com/leagues/NBA_{}_per_game.html'\n",
6969
"\n",
7070
"# Combining the URL + year strings together\n",
71-
"url = str.format(year)\n",
71+
"url = url_link.format(year)\n",
7272
"url"
7373
],
7474
"execution_count": 0,
@@ -110,10 +110,10 @@
110110
},
111111
"source": [
112112
"years = [2015,2016,2017,2018,2019]\n",
113-
"str = 'https://www.basketball-reference.com/leagues/NBA_{}_per_game.html'\n",
113+
"url_link = 'https://www.basketball-reference.com/leagues/NBA_{}_per_game.html'\n",
114114
"\n",
115115
"for year in years:\n",
116-
" url = str.format(year)\n",
116+
" url = url_link.format(year)\n",
117117
" print(url)"
118118
],
119119
"execution_count": 0,
@@ -2021,4 +2021,4 @@
20212021
]
20222022
}
20232023
]
2024-
}
2024+
}

0 commit comments

Comments
 (0)