From 405d3d03564ec9e7c2bc83856cff03f9db807f78 Mon Sep 17 00:00:00 2001 From: nprasad2077 <114438461+nprasad2077@users.noreply.github.com> Date: Wed, 24 May 2023 18:43:59 -0500 Subject: [PATCH] modify success message --- nba_data/nba_scraper_shot_chart.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nba_data/nba_scraper_shot_chart.py b/nba_data/nba_scraper_shot_chart.py index 1bb7462..fc94fd8 100644 --- a/nba_data/nba_scraper_shot_chart.py +++ b/nba_data/nba_scraper_shot_chart.py @@ -12,10 +12,10 @@ django.setup() from nba_data.models import PlayerShotChartData -player_name = 'LeBron James' -season = 2014 +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/j/jamesle01/shooting/' + \ +url = 'https://www.basketball-reference.com/players/h/hardeja01/shooting/' + \ str(season) response = requests.get(url) @@ -110,4 +110,4 @@ try: except Exception as e: print(f"Error inserting data into database: {e}") -print('success') +print(f"success {player_name} {season}")