This is a simple Python project that analyze and extract HTML data from a Discord group to create a database of calls that happened in the group (or DM conversation).
The program uses selenium to control a browser, which will analyze the Discord HTML for collecting call data.
-
When the program is launched, the user can login to Discord and will then be automatically redirected to the link of the group chat (entered in
main.py
) that they wish to log. -
After that, the user can simply press enter in the console, and the program will simulate pressing the
Page Up
key on the keyboard to go through the entire group chat. -
Every time the program finds an HTML
<div>
with the call class (content__235ca
), it will be analyzed, extracting the user who started the call, the length of the call, and the time of the call. All of this will be saved to an SQLite database. -
Once the program is done going through the chat, the user can press
Ctrl + C
in the console to end the program. -
The database file will be saved in
data/database/...
with the name you chose for it inmain.py
.
⚠ All the browser data and login token for Discord ect. are saved in data/selenium_browser_profile
be careful with this folder! (For dev its not tracked by Git)
Console extracting calls:

The data collected can be used for making stats and analyze the call habbits of you and your friends, like how long you all spend on calls, average call length, who starts calls the most ect
There is a couple data analyzing programs in the tools
directory but nothing too advanced.
Data analyzing examples:

