Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 1.89 KB

discord_scraper_README.md

File metadata and controls

67 lines (52 loc) · 1.89 KB

Discord Message Scraper Bookmarklet

A JavaScript bookmarklet that extracts and organizes Discord forum messages into downloadable threaded conversations.

Features

  • Captures the latest 50 messages on initial load
  • Automatically captures new messages while scrolling
  • Groups messages into conversation threads
  • Preserves message timestamps and author information
  • Provides real-time message counter
  • Supports both downloading and copying to clipboard

Installation

Two options:

  1. Direct install: Visit Bookmarklet Installer
  2. Manual install:

Usage

  1. Navigate to any Discord forum thread
  2. Click the bookmarklet in your bookmarks bar
  3. Scroll up to capture more messages
  4. Use the floating control panel to:
    • View message count
    • Download JSON file
    • Copy data to clipboard
    • Close the scraper

Output Format

The downloaded/copied data is a JSON array of threaded conversations:

[
  {
    "root": {
      "author": "username",
      "content": "message text",
      "timestamp": "ISO-8601 timestamp"
    },
    "replies": [
      {
        "author": "username",
        "content": "reply text",
        "timestamp": "ISO-8601 timestamp"
      }
    ]
  }
]

Technical Details

  • Uses mutation observers and XHR/fetch interceptors to capture messages
  • Maintains chronological order of messages
  • Reconstructs conversation threads based on reply relationships
  • Handles both API responses and DOM-extracted messages

License

Licensed under the MIT License. See the LICENSE file for details.