Skip to content

Python script to convert JSON files generated by the Discord Chat Exporter (DCE) into HTML files, enabling easy viewing and sharing of Discord chat logs.

Notifications You must be signed in to change notification settings

jsmsj/DCE-JSONtoHTML

Repository files navigation

Discord Chat Exporter JSON to HTML

This script is used to convert the export the json data converted by Discord Chat Exporter by Tyrrrz to HTML format.

How To ?

  1. Download this repository.
  2. Put your JSON files and Media Folders in InputFiles folder.

To convert a single json file to html

  1. Open terminal in this folder.
  2. Run pip install -r requirements.txt
  3. Run

    python convert_single_file.py "Servername - CategoryName - ChannelName [ChannelID].json"

  4. Your converted HTML file will be in InputFiles Directory.

To convert all json files present in InputFiles Directory to html

  1. Click on converall.bat file and your files will be converted to HTML

Note: For better results, when you export the json files using Discord Chat Exporter, Use --markdown false flag.

Pro Tips:

  1. Export Command i use [DCE CLI]:

dotnet DiscordChatExporter.Cli.dll export -c channel_id -f Json -t "BotToken" --media --reuse-media --markdown false


Credits:

  1. Tyrrrz for DCE and CSS
  2. Slatinsky for Example Guild (taken from his repo lol) and CSS

About

Python script to convert JSON files generated by the Discord Chat Exporter (DCE) into HTML files, enabling easy viewing and sharing of Discord chat logs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published