llSourcell / ChatGPT_Sports_Betting_Bot

This is the code for "I Built a Sports Betting Bot with ChatGPT" by Siraj Raval on Youtube
457 stars 174 forks source link

Typerror? #12

Closed Ambrose997 closed 1 year ago

Ambrose997 commented 1 year ago

Hi, I can't seem to figure out what the problem is here:


TypeError Traceback (most recent call last) in <cell line: 2>() 1 events = [] 2 for data in odds_response: ----> 3 events.append(Event(data)) 4 print(data) 5 print()

in init(self, data) 7 def init(self, data): 8 self.data = data ----> 9 self.sport_key = data['sport_key'] 10 self.id = data['id'] 11

 Not sure why this is causing issues. Anyone able to help?