Last active
July 16, 2024 19:36
-
-
Save wzjoriv/7803276283bb123511d85226d22bcdad to your computer and use it in GitHub Desktop.
Retrieve attendance from zoom chat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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