Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.34 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.34 KB

Discord Channel Content Downloader

A nifty Go tool that scans an HTML file for Discord CDN URLs, downloads the contents, and replaces the remote URLs with local file paths.

Features

  • Image Extraction: Scans your HTML file and finds Discord CDN URLs using a robust regex pattern.
  • Smart Downloading: Downloads content using a custom HTTP client and handles various URL quirks (like trailing ampersands).
  • Hash-Based Filenames: Generates unique filenames with MD5 hashes to avoid duplicate downloads and path length issues.
  • Automatic Updates: Replaces the original URLs in the HTML file with paths to the locally saved images.
  • Self-Creating Directory: Automatically creates a static directory if it doesn't exist to store your images.

Installation :3

  1. Prerequisites:
    Make sure you have Go installed.
    Have an HTML exported copy of your Discord DM/Channel/Group
    (For example use the DiscordChatExporter from Tyrrrz)

  2. Clone the Repository:

    git clone https://github.com/twdtech/discord-content-downloader
    cd discord-content-downloader
    go build
  3. Usage

    ./dcContentLoader [your html file]

    or

    .\dcContentLoader.exe .\[your html file]