TwitEx Example 3


$ python twitex.py
Welcome to TwitEx!

Valid commands in this program are: 
  [s]ort
  [f]ilter
  [d]isplay
  [q]uit
You can use a command by typing its first letter.

What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? f
Filter by what field ([n]ame,[s]creenname,[c]ontent)? c
Filter using what string? BONG
Filtering complete; there are 200 tweet(s) that match that filter.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? s
Sort by what field ([s]creenname,[n]ame,[t]ime,[r]etweets)? t
Sorted tweets by time.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? d
How many? 5
Big Ben (@big_ben_clock) at 2015-11-02 20:00:02 EST (138 retweets):
    BONG

Big Ben (@big_ben_clock) at 2015-11-02 19:00:02 EST (157 retweets):
    BONG BONG BONG BONG BONG BONG BONG BONG BONG BONG BONG BONG

Big Ben (@big_ben_clock) at 2015-11-02 18:00:02 EST (132 retweets):
    BONG BONG BONG BONG BONG BONG BONG BONG BONG BONG BONG

Big Ben (@big_ben_clock) at 2015-11-02 17:00:02 EST (129 retweets):
    BONG BONG BONG BONG BONG BONG BONG BONG BONG BONG

Big Ben (@big_ben_clock) at 2015-11-02 16:00:02 EST (111 retweets):
    BONG BONG BONG BONG BONG BONG BONG BONG BONG

What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? s
Sort by what field ([s]creenname,[n]ame,[t]ime,[r]etweets)? r
Sorted tweets by retweets.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? d
How many? 3
Big Ben (@big_ben_clock) at 2015-11-02 19:00:02 EST (157 retweets):
    BONG BONG BONG BONG BONG BONG BONG BONG BONG BONG BONG BONG

Big Ben (@big_ben_clock) at 2015-11-02 20:00:02 EST (138 retweets):
    BONG

Big Ben (@big_ben_clock) at 2015-11-02 11:00:02 EST (132 retweets):
    BONG BONG BONG BONG

Note that sorting also does not bring back tweets that have been filtered.  Because we filtered to tweets containing "BONG", that stays in effect no matter how we sort them.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? f
Filter by what field ([n]ame,[s]creenname,[c]ontent)? c
Filter using what string? .
Filtering complete; there are 0 tweet(s) that match that filter.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? q
Goodbye!
Return to Lab 08
Example 1
Example 2