Nov-28-2020, 12:45 AM
(This post was last modified: Nov-28-2020, 12:46 AM by shirleylam852.)
@perfringo
Because my professor gave us a : all-tweets.zip file containing 12 .tweet files we have to run through. W have to run through each file simultaneously and not input one at a time so my professor said use filename.
Use sort to sort the above list and print out 3 most frequently mentioned usernames.
Check each file in the current folder (using os.listdir('.')), if the file name ends with .tweets, call findMentions on the file to find its most frequent mentions.
Because my professor gave us a : all-tweets.zip file containing 12 .tweet files we have to run through. W have to run through each file simultaneously and not input one at a time so my professor said use filename.
Use sort to sort the above list and print out 3 most frequently mentioned usernames.
Check each file in the current folder (using os.listdir('.')), if the file name ends with .tweets, call findMentions on the file to find its most frequent mentions.