TwitEx Example 1

$ 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? security
Filtering complete; there are 20 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
EFF (@EFF) at 2015-11-05 17:59:02 EST (74 retweets):
    From threat modeling to encryption, here are 10 lessons in security for journalism students: https://t.co/lJWXUolM7h

Malala Fund (@MalalaFund) at 2015-11-04 11:22:52 EST (30 retweets):
    Afghanistan Minister says closure of schools for security concerns is barrier to ed. Children have right to learn in safety. #Education2030

EFF (@EFF) at 2015-11-03 16:47:10 EST (16 retweets):
    Join EFF at Real Future Fair in San Francisco this Friday and Saturday for panels and practical security tips. https://t.co/yq9yMkd3zM

EFF (@EFF) at 2015-10-28 15:46:09 EDT (68 retweets):
    EFF identified dozens of license plate readers with insufficient security (and many with no protection at all) https://t.co/scQpF7Vaen

EFF (@EFF) at 2015-10-27 18:28:45 EDT (194 retweets):
    Wondering if your senator was among the 74 to vote against privacy and security today? CISA vote online here: https://t.co/f34se2hpXN

These tweets are from multiple users since we never filtered on the name or screenname fields.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? q
Goodbye!
$ python twitex.py
Since we are running the program again, we now have a fresh list of tweets loaded from the file anew.
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? education
Filtering complete; there are 14 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? 4
Malala Fund (@MalalaFund) at 2015-10-16 14:45:03 EDT (127 retweets):
    YES! Meryl Streep calls on all women to fight for girls' education. Stand #withMalala http://t.co/0QTr9Z1sR3 http://t.co/3rBcTp56lD

Malala Fund (@MalalaFund) at 2015-11-02 16:51:01 EST (72 retweets):
    Whitney from Kenya is fighting poverty with her strongest weapon: education. Read her story: https://t.co/U2zJfo8IoS https://t.co/nYeO9iCsek

Malala Fund (@MalalaFund) at 2015-10-23 10:32:46 EDT (66 retweets):
    RT @girleffect: Displacement ruins dreams.  But education can rebuild them.  https://t.co/xfE3kZMxM1 #RefugeeCrisis https://t.co/SiKM4Nxyxn

Malala Fund (@MalalaFund) at 2015-10-21 11:38:01 EDT (46 retweets):
    In Kenya, Whitney fights poverty thanks to an education from @Nairobits: https://t.co/D0sCYOzesU #UpgradeYourWorld https://t.co/usmxVShuos

All of these tweets are from @MalalaFund, but that's just because @MalalaFund focuses on education.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? q
Goodbye!
$ 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? horse
Filtering complete; there are 5 tweet(s) that match that filter.
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? the
Filtering complete; there are 2 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? 4
Not Yoko Ono (@yokohnono) at 2011-10-24 20:25:05 EDT (195 retweets):
    Before sleeping, imagine a small sad horse in a tu-tu. Now, imagine a top hat. Put the top hat on the tiny horse. All better.

Not Yoko Ono (@yokohnono) at 2011-04-26 10:19:39 EDT (15 retweets):
    Imagine a really big horse, then imagine a brightly painted colander. Now, put the colander on it's head. There, all better.

Even though we asked to display 4 tweets, there are only 2 left so only 2 are shown.  The program does not crash.
What now ([s]ort,[f]ilter,[d]isplay,[q]uit)? q
Goodbye!
Return to Lab 08
Example 2
Example 3