Crates.io | groupme-rust-stats |
lib.rs | groupme-rust-stats |
version | 1.0.7 |
source | src |
created_at | 2020-06-19 21:29:38.74874 |
updated_at | 2021-12-03 15:17:49.672794 |
description | A rust command line tool which downloads the complete history of a groupme chat group. It also runs a few analytics on the data and displays as a plain text file. |
homepage | |
repository | https://github.com/taylorjbrown/groupme-rust-stats |
max_upload_size | |
id | 255823 |
size | 133,415 |
A Tool to download all history of a GroupMe chat room and runs a few stats on each user's messages in the group:
Prerequisites:
<user name>'s Access Token
<Groupme_Api_Key>
https://api.groupme.com/v3/groups/0000000/messages?acceptFiles=1&limit=10
0000000 -> This is the chat's Id, used in settings file as
<Groupme_Chat_Ids>
Output:url
Two folders will be created when run:
messages.csv:
| createdTimestamp | userId | userName@timeOfMessage| messageText | totaldabs | favorited_by | message_id |
users.csv:
| userId | usernames (separated by comma) |
results.txt:
An ordered list of other users in the group with the current user's total like count for their messages
How To Run:
Install Rust runtime time from here:
Clone repository
Change Settings.default.toml to Settings.toml and add the following information:
group_ids = <Groupme_Chat_Ids>
api_key = "<Groupme_Api_Key>"
output_folder = "<Relative_Path_Loction_For_Output_Folder>"
results_folder = "<Relative_Path_Location_For_Results_Folder>"
Use command:
cargo run
On complete you should see an output like the one below:
Download binary from the releases (supports windows and linux [compiled on ubuntu 20.04]):
chmod +x
on the file after the downloadCreate a folder, add the downloaded binary to it
Create a Settings.toml in the same folder as the binary
Add the following information to the settings file:
group_ids = <Groupme_Chat_Ids>
api_key = "<Groupme_Api_Key>"
output_folder = "<Relative_Path_Loction_For_Output_Folder>"
results_folder = "<Relative_Path_Location_For_Results_Folder>"
Open command-line/terminal, navigate to folder that holds the binary
Run the following command:
./groupme-rust-stats
On complete you should see an output like the one below:
Have rust runtime installed on machine
Run cargo install groupme-rust-stats
Add a Settings.toml file, in current folder, with the following details:
group_ids = <Groupme_Chat_Ids>
api_key = "<Groupme_Api_Key>"
output_folder = "<Relative_Path_Loction_For_Output_Folder>"
results_folder = "<Relative_Path_Location_For_Results_Folder>"
Run package with ~/.cargo/bin/groupme-rust-stats