TwitEx Example 2

$ 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.

In this example, we will make many input errors.  They wind up having no effect on the tweets that are displayed.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? s
Sort by what field ([s]creenname,[n]ame,[t]ime,[r]etweets)? f
That is not a valid sort type.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? f
Filter by what field ([n]ame,[s]creenname,[c]ontent)? f
That is not a valid filter.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? x
That is not a valid command.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? f
Filter by what field ([n]ame,[s]creenname,[c]ontent)? s
Filter using what string? @ProBirdRights
Filtering complete; there are 195 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)? r
Sorted tweets by retweets.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? d
How many? -1
Your number of tweets must be positive.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? d
How many? g
That is not a valid number of tweets.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? d
How many? 5
birdsrightsactivist (@ProBirdRights) at 2015-04-05 15:39:24 EDT (15682 retweets):
    maybe I should paint some of your babby and hide them around see how you like it

birdsrightsactivist (@ProBirdRights) at 2015-06-15 17:51:21 EDT (14638 retweets):
    I been working on my summer bod: it the same as my regular body, but this time more popsackles in it.

birdsrightsactivist (@ProBirdRights) at 2015-06-16 17:02:30 EDT (13148 retweets):
    How can they say me a bird can not be run for Presindent when Donal Trump a giant talking corn can??? #birb2016

birdsrightsactivist (@ProBirdRights) at 2015-07-04 20:43:30 EDT (10273 retweets):
    hi Merica. I know it your birtday. But maybe you can a little less TRY TO EXPLOSION ME OUT OF THE SKY???? Thank.

birdsrightsactivist (@ProBirdRights) at 2015-06-22 17:28:15 EDT (9204 retweets):
    oh i sorry. I can not hear you over all this me.

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? me
Filtering complete; there are 105 tweet(s) that match that filter.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? d
How many? 4
birdsrightsactivist (@ProBirdRights) at 2015-04-05 15:39:24 EDT (15682 retweets):
    maybe I should paint some of your babby and hide them around see how you like it

birdsrightsactivist (@ProBirdRights) at 2015-06-15 17:51:21 EDT (14638 retweets):
    I been working on my summer bod: it the same as my regular body, but this time more popsackles in it.

birdsrightsactivist (@ProBirdRights) at 2015-06-16 17:02:30 EDT (13148 retweets):
    How can they say me a bird can not be run for Presindent when Donal Trump a giant talking corn can??? #birb2016

birdsrightsactivist (@ProBirdRights) at 2015-06-22 17:28:15 EDT (9204 retweets):
    oh i sorry. I can not hear you over all this me.

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? corn
Filtering complete; there are 3 tweet(s) that match that filter.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? d
How many? 4
birdsrightsactivist (@ProBirdRights) at 2015-06-16 17:02:30 EDT (13148 retweets):
    How can they say me a bird can not be run for Presindent when Donal Trump a giant talking corn can??? #birb2016

birdsrightsactivist (@ProBirdRights) at 2015-10-06 18:16:20 EDT (1765 retweets):
    it the corn times now corn is every day corn month of corn is happening corn.

birdsrightsactivist (@ProBirdRights) at 2015-09-07 18:46:52 EDT (1707 retweets):
    Happy laborday cant stay long gotta get as many summer left I sunglasses while in a hotdag bun corn corn melons hurry

What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? q
Goodbye!
Return to Lab 08
Example 1
Example 3