Python error with IndentationError: unindent does not match any outer indentation level
- by Vikrant Cornelio
from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
ckey='W1VPPrau42ENAWP1EnDGpQ'
csecret='qxtY2rYNN0QT0Ndl1L4PJhHcHuWRJWlEuVnHFDRSE'
atoken='1577208120-B8vGWIquxbmscb9xdu5AUzENv09kGAJUCddJXAO'
asecret='tc9Or4XoOugeLPhwmCLwR4XK8oUXQHqnl10VnQpTBzdNR'
class listener(StreamListener):
def on_data(self,data):
print data
return True
def on_error(self,status):
print status
auth=OAuthHandler(ckey,csecret)
auth.set_access_token(atoken,asecret)
twitterStream=Stream(auth,listener())
twitterStream.filter(track=["car"])
I typed this in my Python shell i got an error...the error was IndentationError: unindent does not match any outer indentation level..Please help me!!!!!!!!!!!