A Python script that downloads images and videos from a Discord channel.
- Python 3.x
- Discord.py module
-
Clone the repository or download
discord_downloader.py
. -
Install the
discord.py
module via pip:pip install discord
-
Set your Discord bot token in the
TOKEN
variable inside thediscord_downloader.py
script.
python3 discord_downloader.py <channel_id>
The script will create a folder with the channel name + id and download all images and videos from the channel into that folder.
When the script is finished running, it will print the total number of attachments downloaded.