Skip to content

Discord Scraping Procedures

Export all channels from a guild to a file

mkdir $HOME/DiscordScraping
cd $HOME/DiscordScraping
DISCORD_TOKEN="TOKEN_JIBBERISH"
GUILD_ID="GUILD_ID_NUMBER"
mkdir $GUILD_ID
cd $export_folder
my_dir="pwd"
sudo docker run --rm -v $HOME/DiscordScraping/$GUILD_ID:/out \
    --name discord01 \
    tyrrrz/discordchatexporter:stable channels \
    -t $DISCORD_TOKEN \
    -g $GUILD_ID > $HOME/DiscordScraping/channels-$GUILD_ID.txt

Loop through and scrape each Discord Channel