Errors

Course Name: Trading Strategies with News and Tweets, Section No: 3, Unit No: 8, Unit type: Notebook



 

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-2-2ab869f02116> in <module>
      7 
      8 # Set the consumer key and secret from the twitter_tokens dictionary
----> 9 consumer_key = twitter_tokens["20DJMB2prA5V5MS7DiRZhL2wD"]
     10 consumer_secret = twitter_tokens["2uk36nMLtdMzxj4r646rx3cxDDzEsrJXZYBKMj16LUJYduLJOm"]

KeyError: '20DJMB2prA5V5MS7DiRZhL2wD'

what should I do whats wrong

Hi Ali,



Please set the tokens directly as : 



consumer_key = "20DJMB2prA5V5MS7DiRZhL2wD"

consumer_secret = "2uk36nMLtdMzxj4r646rx3cxDDzEsrJXZYBKMj16LUJYduLJOm"



Hope gthi helps!