Skip to content

Commit

Permalink
Update pandas_read_html_for_webscraping.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
dataprofessor authored Nov 25, 2020
1 parent 53e0903 commit d03d550
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/pandas_read_html_for_webscraping.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@
"source": [
"# The Building Blocks\n",
"year = '2019'\n",
"str = 'https://www.basketball-reference.com/leagues/NBA_{}_per_game.html'\n",
"url_link = 'https://www.basketball-reference.com/leagues/NBA_{}_per_game.html'\n",
"\n",
"# Combining the URL + year strings together\n",
"url = str.format(year)\n",
"url = url_link.format(year)\n",
"url"
],
"execution_count": 0,
Expand Down Expand Up @@ -110,10 +110,10 @@
},
"source": [
"years = [2015,2016,2017,2018,2019]\n",
"str = 'https://www.basketball-reference.com/leagues/NBA_{}_per_game.html'\n",
"url_link = 'https://www.basketball-reference.com/leagues/NBA_{}_per_game.html'\n",
"\n",
"for year in years:\n",
" url = str.format(year)\n",
" url = url_link.format(year)\n",
" print(url)"
],
"execution_count": 0,
Expand Down Expand Up @@ -2021,4 +2021,4 @@
]
}
]
}
}

0 comments on commit d03d550

Please sign in to comment.