first premier league stuff added
This commit is contained in:
@@ -298,7 +298,7 @@ def updateCurrencies(api_key):
|
||||
json.dump([base, c_dict], open( "csv/currency.json", 'w+' ))
|
||||
|
||||
|
||||
def updateSports():
|
||||
def updateSports(api_key):
|
||||
url = 'https://www.thesportsdb.com/api/v1/json/1/lookuptable.php?l=4328&s=2020-2021' # premier league table
|
||||
'https://www.thesportsdb.com/api/v1/json/1/eventsnext.php?id=133602' # next five events by team ID (paid) use this for upcoming team games
|
||||
'https://www.thesportsdb.com/api/v2/json/APIKEY/livescore.php?l=4380' #live scores
|
||||
@@ -397,6 +397,7 @@ if __name__ == '__main__':
|
||||
weather_key = 'bd5d5096a5ba30bbcfb57ead42ab3fee'
|
||||
|
||||
currency_key = '862dbb6d1101ce0c5136'
|
||||
sports_key = '97436974'
|
||||
|
||||
updateCurrencies(currency_key)
|
||||
|
||||
@@ -426,7 +427,7 @@ if __name__ == '__main__':
|
||||
updateCurrencies(currency_key)
|
||||
updateNews()
|
||||
updateWeather(weather_location, weather_key)
|
||||
updateSports()
|
||||
updateSports(sports_key)
|
||||
|
||||
NY_time = datetime.now(NY_zone)
|
||||
symbols, stock_info = readCSV('csv/tickers.csv', max_stocks)
|
||||
|
Reference in New Issue
Block a user