Skip to content

A way to count the number of likes a user has in a GroupMe chat

Notifications You must be signed in to change notification settings

ethan-schaffer/GroupMeLikeCounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GroupMeLikeCounter

Overview

This Program Counts the number of likes each person in a groupme chat has recieved.

It does this using the Groupy API Wrapper, which wraps GroupMe's official API.

Once completed, the data is stored in a Google Doc. This is done to make it accessible (but view only) to any member of the chat.

Problems

While at some point every message will need to be processed, an obvious implementation would need to look through every message each time one is sent in order to update things.

One issue with this is that in some cases, groupme chats can have tens or even hundreds of thousands of messages.

Going over the same messages over and over is a waste of time, so instead we can store a current count for each user, along with what the id of the most recent message read.

Google Sheets

The output of this program can be found at a Google Sheet. This is accomplished using the Google Sheets API.

Pipeline

The overall pipeline of tasks is that the data must be loaded. Then, an update option exists, before the data is sent to the google sheet.

The first function that is run is data_load. data_load reads through the whole chatlog, in order to get a preliminary count.

The second function is data_update, which updates the running totals of likes and counts for each user.

The final function is data_to_google_sheet, which does what would be expected. The data is sent to a live google sheet.

To do this, I used the Google Sheets API, along with sort functions and a map operation to best prepare the data.

Additional Improvements

Previously, a "like" a user awarded their own message would have been counted.

However, this was not an expected behavior, so it self likes are now filtered out.

About

A way to count the number of likes a user has in a GroupMe chat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages