Exemple #1
0
def setupAllFinishedGames():
    end_date = date.today() - timedelta(days=1)
    print end_date
    start_date = date(2014, 10, 28)
    day_count = (end_date - start_date).days + 1
    games = pd.read_pickle(r'\django projects\nbaScraping\data\games')
    for n in range(day_count):
        onDate = start_date + timedelta(n)
        #print getGame(onDate)
        games = games.append(getGame(onDate))
    games = games.drop_duplicates()
    games.to_pickle(r'\django projects\nbaScraping\data\games')
Exemple #2
0
def setupAllFinishedGames():
    end_date = date.today() - timedelta(days=1)
    print end_date
    start_date = date(2014,10,28)
    day_count = (end_date - start_date).days + 1
    games = pd.read_pickle(r'\django projects\nbaScraping\data\games')
    for n in range(day_count):
        onDate = start_date + timedelta(n)
        #print getGame(onDate)
        games = games.append(getGame(onDate))
    games = games.drop_duplicates()
    games.to_pickle(r'\django projects\nbaScraping\data\games')
Exemple #3
0
def addSingleDayGame(onDate):
    games = pd.read_pickle(r'\django projects\nbaScraping\data\games')
    games = games.append(getGame(onDate))
    games = games.drop_duplicates()
    games.to_pickle(r'\django projects\nbaScraping\data\games')
Exemple #4
0
def addSingleDayGame(onDate):
    games = pd.read_pickle(r'\django projects\nbaScraping\data\games')
    games = games.append(getGame(onDate))
    games = games.drop_duplicates()
    games.to_pickle(r'\django projects\nbaScraping\data\games')
Exemple #5
0
def getTodayGame():
    global todayGames
    todayGames = getGame(date.today())