Beautiful, fast, and smart Roblox promo code aggregator
- ๐ 10+ Sources - Aggregates from RobloxDen, GamesRadar, PocketTactics, and more
- โก Parallel Scraping - All sources scraped simultaneously (3-5 seconds total)
- ๐ง Smart Deduplication - Reliability-weighted code selection
- ๐จ Beautiful TUI - Interactive Terminal UI with Textual (NEW!)
- ๐ Rate Limiting - Prevents IP bans (10s between requests per source)
- ๐ Source Tracking - Reliability ratings and statistics
- ๐ Notifications - Discord and Telegram support
- ๐พ SQLite Database - Persistent storage with history
# Clone repository
git clone https://github.com/yourusername/scrapox.git
cd scrapox
# Install dependencies
pip install -r requirements.txt
# Or install as package
pip install -e .# ๐จ Launch interactive TUI (NEW!)
scrapox tui
# Scrape all sources once
scrapox scrape
# Continuous monitoring (every 2 hours)
scrapox monitor --interval 2
# Browse codes with filters
scrapox list --status active --sort-by reliability
# View source statistics
scrapox statsSee TUI Guide for detailed TUI documentation.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฎ Scrapox - Roblox Code Scraper โ
โ โจ Discover the latest codes! โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ Scraping 10 sources... โโโโโโโ 80%
โญโโโโโโโโโโโ ๐ Scrape Results โโโโโโโโโโโโฎ
โ ๐ New Codes: 5 โ
โ ๐ Total Active: 68 โ
โ โฑ๏ธ Duration: 3.45s โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โจ ๐ New Codes โจ
โญโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโฎ
โ๐ฏ Code โ๐ฆ Item โ๐ SourceโโญStatusโ
โโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโค
โCODE123 โCool Item โRobloxDenโ โ
โญโญโญโ
โฐโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโฏ
Scrapox uses a pragmatic 3-tier architecture:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Tier 1: Interface Layer โ
โ โข CLI (cli.py) - Command interface โ
โ โข TUI (tui.py) - Interactive UI โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Tier 2: Business Logic โ
โ โข scraper.py - Async orchestration โ
โ โข monitor.py - Scheduled scraping โ
โ โข parsers.py - HTML extraction โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Tier 3: Data & Services โ
โ โข database.py - SQLite persistence โ
โ โข notifications.py - Alerts โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Design Philosophy: Simple over complex, working over perfect
scrapox/
โโโ scrapox/ # Main package
โ โโโ __init__.py # Package metadata
โ โโโ cli.py # CLI interface
โ โโโ tui.py # Terminal UI (Textual)
โ โโโ scraper.py # Core scraping logic
โ โโโ database.py # SQLite operations
โ โโโ monitor.py # Continuous monitoring
โ โโโ parsers.py # HTML extraction
โ โโโ notifications.py # Discord/Telegram
โโโ tests/ # Test suite (60% coverage)
โโโ docs/ # Documentation
โ โโโ TUI_GUIDE.md # TUI usage guide
โโโ config.yaml # Configuration
โโโ requirements.txt # Dependencies
โโโ README.md # This file
Edit config.yaml to customize:
- Sources: Enable/disable sources, change URLs
- Rate Limiting: Adjust requests per minute
- Notifications: Configure Discord/Telegram webhooks
- Database: Change database path
For secrets (optional):
export SCRAPOX_DISCORD_WEBHOOK="https://discord.com/api/webhooks/..."
export SCRAPOX_TELEGRAM_BOT_TOKEN="123456789:ABC..."
export SCRAPOX_TELEGRAM_CHAT_ID="987654321"# Run all tests
pytest
# With coverage report
pytest --cov=scrapox --cov-report=html
# Run specific test
pytest tests/test_deduplication.pyTarget: 60% test coverage (pragmatic goal)
| Metric | Target | Actual |
|---|---|---|
| Scrape Duration (10 sources) | < 5s | 3-5s โ |
| Memory Usage | < 100MB | ~60MB โ |
| Database Size (100k codes) | ~50MB | ~45MB โ |
# Clone repo
git clone https://github.com/yourusername/scrapox.git
cd scrapox
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install with dev dependencies
pip install -r requirements.txt
pip install -e .# Run scraper
python -m scrapox scrape
# Run with debug logging
python -m scrapox scrape --config config.yaml- โ Rate limiting - Prevents IP bans
- โ Code validation - Alphanumeric only, max 20 chars
- โ Parameterized queries - SQL injection prevention
- โ Environment variables - No secrets in code
- โ Public data only - No authentication bypass
MIT License - see LICENSE file
Sources:
- RobloxDen, GamesRadar, PocketTactics, FossBytes
- SimplyCodes, Times of India, Eldorado.gg
- PCGamer, TheSpike.gg, MyRidima
Built With:
- Python, aiohttp, BeautifulSoup4
- Textual (interactive TUI framework)
- Rich (terminal styling)
- SQLite, PyYAML, structlog
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Made with โค๏ธ for the Roblox community