()
Menu for twitter
Menu for twitter
Menu for twitter
def twitMenu():
    """Menu for twitter"""
    if t_auth is None or t_api is None:
        print "Twitter is disabled; please install an API key for twitter"
        return
    oscrtwitter.mmenu()
    opt = raw_input("Enter an option: ")
    if opt == "1":
        oscrtwitter.lv_stream(t_auth)
    elif opt == "2":
        oscrtwitter.lv_streamno(t_auth)
    elif opt == "3":
        oscrtwitter.hist_tweet(t_api)
        twitMenu()
    elif opt == "4":
        oscrtwitter.rcntFllw(t_api)
        twitMenu()
    elif opt == "5":
        oscrtwitter.rcntFllwrs(t_api)
        twitMenu()
    elif opt == "6":
        oscrtwitter.mentionCount(t_api)
        twitMenu()
    elif opt == "7":
        oscrtwitter.twitSearch(t_api)
        twitMenu()
    elif opt == "8":
        oscrtwitter.twitlookup(t_api)
        twitMenu()
    elif opt == "9":
        oscrtwitter.batch_delete(t_api)
        twitMenu()
    elif opt == "10":
        oscrtwitter.favdelete(t_api)
        twitMenu()
    elif opt == "11":
        oscrtwitter.dm_batch(t_api)
        twitMenu()
    elif opt == "12":
        oscrtwitter.dm_sent(t_api)
        twitMenu()
    elif opt == "0":
        main()
    else:
        print "[+]ERROR: You entered an invalid option!"
        twitMenu()
def twitMenu ( ) : if t_auth is None or t_api is None : print "Twitter is disabled; please install an API key for twitter" return oscrtwitter . mmenu ( ) opt = raw_input ( "Enter an option: " ) if opt == "1" : oscrtwitter . lv_stream ( t_auth ) elif opt == "2" : oscrtwitter . lv_streamno ( t_auth ) elif opt == "3" : oscrtwitter . hist_tweet ( t_api ) twitMenu ( ) elif opt == "4" : oscrtwitter . rcntFllw ( t_api ) twitMenu ( ) elif opt == "5" : oscrtwitter . rcntFllwrs ( t_api ) twitMenu ( ) elif opt == "6" : oscrtwitter . mentionCount ( t_api ) twitMenu ( ) elif opt == "7" : oscrtwitter . twitSearch ( t_api ) twitMenu ( ) elif opt == "8" : oscrtwitter . twitlookup ( t_api ) twitMenu ( ) elif opt == "9" : oscrtwitter . batch_delete ( t_api ) twitMenu ( ) elif opt == "10" : oscrtwitter . favdelete ( t_api ) twitMenu ( ) elif opt == "11" : oscrtwitter . dm_batch ( t_api ) twitMenu ( ) elif opt == "12" : oscrtwitter . dm_sent ( t_api ) twitMenu ( ) elif opt == "0" : main ( ) else : print "[+]ERROR: You entered an invalid option!" twitMenu ( )