Scrape all messages and timestamps in a Discord channel or DM and save to a JSON file (Latest to First)
This script is a modification of the popular Undiscord tool, repurposed to safely scrape messages from a Discord channel or Direct Message (DM) and save the data to a local JSON file. It does not perform any deletion.
The scraped data includes the message content, author (username and discriminator), timestamp, ID, and attachments information. Messages are saved in reverse chronological order (latest message first).
.json file containing all scraped message data upon completion or stopping.To use this script, you must provide your Authorization Token. This is a private key used by your browser to authenticate with Discord's API. Do not share it!
me button next to Author ID (if you only want to scrape your own messages).current button next to Server ID.current button next to Channel ID.fill button next to Authorization Token (in Advanced Settings).If the fill button fails to retrieve your token, follow these steps:
messages API call.authorization header.MFA.) and manually paste it into the Authorization Token field.When the scraping is complete, a JSON file will automatically download to your browser's default download folder.
This script is heavily based on the original Undiscord (Delete Messages) tool by @victornpb (Victor N.). https://github.com/victornpb/undiscord Original Undiscord GitHub Repository The user interface framework and core message fetching logic are derived from Undiscord. This modification isolates the scraping logic and removes all message deletion functionality.