Do I really need to explain???
The code is probably a bit messy, but it works so :)
- Clone the repo
git clone https://github.com/zenithpaws/discord-cdnlink-scraper-python.git
- Install dependencies
pip install -r requirements.txt
-
Create a Discord bot here: https://discord.com/developers/applications
-
Duplicate config.json.example rename it to
config.json
and fill in the values -
Run the bot
py bot.py
- Run the command(s)
/scrape [file_types] [amount of messages to scrape].
Both are optional, and are not needed
Default values are all
and all
Scrapes attachments and links from the current channel.
Description:
- Scrapes messages from the current channel, extracting and saving links to a file.
Options:
-
file_types
(default: "all")- Description: The types of files to scrape.
- Choices: images, audio, videos, all
-
message_amount
(default: "all")- Description: The number of messages to scrape. If "all", it scrapes all messages.
Scrapes attachments and links from all text channels in the server.
Description:
- Scrapes messages from all text channels in the server, extracting and saving links to a file.
Options:
-
file_types
(default: "all")- Description: The types of files to scrape.
- Choices: images, audio, videos, all
-
message_amount
(default: "all")- Description: The number of messages to scrape. If "all", it scrapes all messages.
Downloads attachments from the current channel.
Description:
- Downloads attachments from messages in the current channel, organizing them into folders based on file types.
Options:
-
file_types
(default: "all")- Description: The types of files to download.
- Choices: images, audio, videos, all
-
message_amount
(default: "all")- Description: The number of messages to scrape. If "all", it scrapes all messages.
Downloads attachments from all text channels in the server.
Description:
- Downloads attachments from all text channels in the server, organizing them into folders based on file types.
Options:
-
file_types
(default: "all")- Description: The types of files to download.
- Choices: images, audio, videos, all
-
message_amount
(default: "all")- Description: The number of messages to scrape. If "all", it scrapes all messages.
Open an issue and I'll take a look and see if I can add it.
MIT
Made by spinfal
Converted to Python by zenithpaws