mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-15 22:33:48 +00:00
modify success message
This commit is contained in:
1 parent
9dc0a983b1
commit
405d3d0356
1 file changed
+4
-4
@@ -12,10 +12,10 @@ django.setup()
|
|||||||
|
|
||||||
from nba_data.models import PlayerShotChartData
|
from nba_data.models import PlayerShotChartData
|
||||||
|
|
||||||
player_name = 'LeBron James'
|
player_name = 'James Harden'
|
||||||
season = 2014
|
season = 2010
|
||||||
# team = 'LAL' # You might want to find a way to get this from the webpage
|
# 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)
|
str(season)
|
||||||
|
|
||||||
response = requests.get(url)
|
response = requests.get(url)
|
||||||
@@ -110,4 +110,4 @@ try:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error inserting data into database: {e}")
|
print(f"Error inserting data into database: {e}")
|
||||||
|
|
||||||
print('success')
|
print(f"success {player_name} {season}")
|
||||||
Reference in new issue
Block a user