else: grap.search(keywords, writeTweet) #STREAM Mode #------------------ elif "stream" == args.mode.lower(): print "Activating stream mode" if args.location is not None and args.lang is not None: grap.stream(keywords, writeTweet, args.location, args.lang) else: grap.stream(keywords, writeTweet) #STREAMLocation mode #------------------ elif "streamlocation" == args.mode.lower(): print "Activating stream mode by location " if args.location is not None and args.lang is not None: grap.streamlocation(writeTweet, args.location, args.lang) else: grap.streamlocation(writeTweet) #Streamloop Mode #------------------ elif "streamloop" == args.mode.lower(): print "Activating streamloop mode" if args.location is not None and args.lang is not None: grap.streamloop(keywords, writeTweet, args.location, args.lang) else: grap.streamloop(keywords, writeTweet)
#------------------ elif "stream" == args.mode.lower(): print "Activating stream mode" if args.location is not None and args.lang is not None : grap.stream(keywords,writeTweet,args.location,args.lang) else : grap.stream(keywords,writeTweet) #STREAMLocation mode #------------------ elif "streamlocation" == args.mode.lower(): print "Activating stream mode by location " if args.location is not None and args.lang is not None : grap.streamlocation(writeTweet,args.location,args.lang) else : grap.streamlocation(writeTweet) #Streamloop Mode #------------------ elif "streamloop" == args.mode.lower(): print "Activating streamloop mode" if args.location is not None and args.lang is not None : grap.streamloop(keywords,writeTweet,args.location,args.lang) else : grap.streamloop(keywords,writeTweet)