Skip to content

Collect HTML data from Discord group/DM to create database of calls

Notifications You must be signed in to change notification settings

jjkay03/Discord-Call-Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Call Extractor

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).


How it works?

The program uses selenium to control a browser, which will analyze the Discord HTML for collecting call data.

  1. 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.

  2. 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.

  3. 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.

  4. Once the program is done going through the chat, the user can press Ctrl + C in the console to end the program.

  5. The database file will be saved in data/database/... with the name you chose for it in main.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:


What to do with the data?

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:

About

Collect HTML data from Discord group/DM to create database of calls

Topics

Resources

Stars

Watchers

Forks

Languages