____ _ _
/ __ \ | | | |
| | | | ___| |_ ___ ___ ___ _ __ __| |
| | | |/ __| __/ _ \ / __/ _ \| '__/ _` |
| |__| | (__| || (_) | (_| (_) | | | (_| |
\____/ \___|\__\___/ \___\___/|_| \__,_|
A fast, optimized Discord ID scraper that extracts online member IDs from Discord servers using browser automation.
- 🔄 Endless Mode: Runs continuously until all members are scraped
- ⚡ Optimized Performance: Headless browser with image blocking for maximum speed
- 🛑 Manual Control: Stop anytime by typing "e" in terminal
- 🔍 Duplicate Prevention: Advanced checking ensures no duplicate IDs
- 📁 Organized Output: All results saved to dedicated outputs folder
- 🎯 ID-Only Focus: Extracts only Discord user IDs for efficiency
Octocord/
├── id-only-scraper.js # Main scraper application
├── config.js # Configuration management
├── package.json # Dependencies and scripts
├── .env.example # Environment variables template
├── outputs/ # All scraper results
├── archive/ # Old/unused files
└── README.md # This file
- Node.js (v16 or higher)
- A Discord Bot Token
- Discord Developer Application
- Open Discord in your browser
- Open Developer Tools (F12)
- Go to Application/Storage → Local Storage → discord.com
- Find the "token" key and copy its value (remove quotes)
- Get the Server ID and Channel ID from Discord URLs
-
Clone this repository:
git clone https://github.com/elioflex/Octocord.git cd Octocord -
Install dependencies:
npm install
-
Create environment file:
cp .env.example .env
-
Edit
.envfile and add your configuration:BOT_TOKEN=your_discord_user_token_here DEFAULT_SERVER_ID=your_server_id_here DEFAULT_CHANNEL_ID=your_channel_id_here
npm run ids-onlyWhile the scraper is running, you can use these commands:
e- Stop the scraping processstatus- Show current progresshelp- Show available commands
Edit .env file to customize behavior:
# Discord user token (required)
BOT_TOKEN=your_discord_user_token_here
# Server ID to scrape (required)
DEFAULT_SERVER_ID=your_server_id_here
# Channel ID for navigation (required)
DEFAULT_CHANNEL_ID=your_channel_id_hereThe scraper generates clean text files with one Discord ID per line:
1003301614637031434
1004335757600768141
1010736152304689202
1015175989426409502
...
- Saved to
outputs/folder - Filename format:
discord_ids_enhanced_YYYY-MM-DDTHH-MM-SS-sssZ.txt - Contains only unique Discord user IDs
- Sorted numerically for consistency
- "Authentication failed": Check your user token in the
.envfile - "Members list not opening": Ensure you have access to the server and channel
- "No IDs found": Make sure there are online members in the server
- "Browser launch failed": Install Chromium dependencies if on Linux
- The scraper runs in headless mode for optimal performance
- Images are blocked to reduce bandwidth and increase speed
- Use "e" command to stop when you have enough IDs
MIT License - feel free to modify and use as needed.