mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-09 19:40:39 +00:00
central teams list
This commit is contained in:
1 parent
4b1d07353d
commit
5eaa50f4e7
5 files changed
+14
-7
No files matched your search
@@ -6,6 +6,7 @@ from bs4 import BeautifulSoup
|
||||
import csv
|
||||
import json
|
||||
import time
|
||||
from data import teams_data
|
||||
|
||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
@@ -31,7 +32,9 @@ teams = ['HOU' ,'PHI', 'BOS', 'NYK', 'NJN', 'TOR', 'MEM', 'NOH', 'DAL', 'SAS', '
|
||||
|
||||
season = input('What season? ')
|
||||
|
||||
for team in teams:
|
||||
teams2 = 'PHI'
|
||||
|
||||
for team in teams2:
|
||||
url_make = 'https://www.basketball-reference.com/teams/' + team + '/' + season + '.html'
|
||||
response = requests.get(url_make)
|
||||
|
||||
|
||||
Reference in new issue
Block a user