Python error with IndentationError: unindent does not match any outer indentation level

Posted by Vikrant Cornelio on Stack Overflow See other posts from Stack Overflow or by Vikrant Cornelio
Published on 2013-11-01T07:10:27Z Indexed on 2013/11/01 9:54 UTC
Read the original article Hit count: 593

Filed under:
|
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!!!!!!!!!!!

© Stack Overflow or respective owner

Related posts about python

Related posts about twitter