From 3558b1c1543ba0c7322bf84ca45e4fb65688b7c1 Mon Sep 17 00:00:00 2001 From: nprasad2077 <114438461+nprasad2077@users.noreply.github.com> Date: Tue, 19 Sep 2023 19:15:12 -0500 Subject: [PATCH] script update --- nba_data/nba_scraper_shot_chart.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nba_data/nba_scraper_shot_chart.py b/nba_data/nba_scraper_shot_chart.py index fc94fd8..c24bc48 100644 --- a/nba_data/nba_scraper_shot_chart.py +++ b/nba_data/nba_scraper_shot_chart.py @@ -12,10 +12,11 @@ django.setup() from nba_data.models import PlayerShotChartData -player_name = 'James Harden' -season = 2010 -# team = 'LAL' # You might want to find a way to get this from the webpage -url = 'https://www.basketball-reference.com/players/h/hardeja01/shooting/' + \ +player_name = 'Damian Lillard' +season = 2013 + +# Player name and season will be inserted into DB. Modify before running script. +url = 'https://www.basketball-reference.com/players/l/lillada01/shooting/' + \ str(season) response = requests.get(url)