Skip to content

Instantly share code, notes, and snippets.

@wzjoriv
Last active July 16, 2024 19:36
Show Gist options
  • Save wzjoriv/7803276283bb123511d85226d22bcdad to your computer and use it in GitHub Desktop.
Save wzjoriv/7803276283bb123511d85226d22bcdad to your computer and use it in GitHub Desktop.
Retrieve attendance from zoom chat
import sys, re
"""
Author: Josue N Rivera
Date: 4/28/2021
Description: Script to retrieve attendance from zoom chat if participants type "<Present> Participant Name" in the chat
To run: Download the meeting chat from Zoom, then type on the terminal: ``python retrieve.py path/to/meeting_saved_chat.txt``
Project Link: https://github.com/wzjoriv
"""
with open(sys.argv[1], 'r') as f:
lines = f.readlines()
finds = [re.search(r"<.*> *..*", line) for line in lines] # get lines that follow attendance policy
finds = [find.group() for find in finds if find] # convert to string
finds = [re.split(r"<.*> *", find, 1)[1] for find in finds] # remove "<present> "
finds = list(set(finds)) # remove duplicates
names = sorted(finds, key=str.casefold) # sort line (case-insentative)
[print(name) for name in names]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment