Popmart Bot

An Automation bot for Popmart that streamlines the purchasing process through real-time stock tracking and advanced checkout handling.

PopMart Bot - CLI-Based Restock Monitor & Auto-Checkout

A sophisticated automation system designed to streamline and automate the purchasing process on Popmart's e-commerce platform. It supports both login-based and cookie-based authentication, real-time stock monitoring, automated checkout, and robust session management. The bot is built for reliability, speed, and flexibility, making it a powerful tool for securing high-demand collectibles.

Key Features

  • Dual Authentication Methods: Supports both login-based and cookie-based authentication for flexible and persistent sessions.
  • Automated Purchase System: Real-time stock monitoring, automated checkout, captcha handling, country selection, and order status tracking.
  • Monitoring & Notifications: Discord integration for real-time alerts, including stock availability and order status updates.
  • CLI & Server Interface: Interactive CLI for local control and Express.js server mode for remote management and concurrent bot operations.
  • Session & Error Management: Secure cookie storage, session persistence, robust error recovery, and automatic browser reinitialization.
  • Configuration System: YAML-based configuration with environment variable support and proxy capabilities.

Technical Implementation

  • Core Language: Node.js with TypeScript for type safety
  • Browser Automation: Puppeteer with stealth plugin to avoid detection, dynamic content handling, and retry mechanisms
  • Session Management: Secure storage and management of cookies and local storage, supporting multiple accounts
  • Notifications: Discord webhooks for real-time updates
  • Server Mode: Express.js server for remote control and concurrent task management
  • Process Management: PM2 for background process handling

Impact

PopMart Bot significantly reduces manual intervention in the Popmart purchasing process, providing fast, reliable, and scalable automation. Its modular architecture and robust error handling ensure high success rates and easy extensibility for future enhancements.

Future Developments

  • Enhanced security with proxy rotation and advanced anti-detection
  • Support for additional e-commerce platforms
  • Web-based dashboard and mobile app
  • Advanced analytics and user preference management
  • Integration with more notification channels and third-party services

Project Gallery

Discord Restock Notification with Quick Task

Real-time Discord alert showing detected Popmart restock with SKU details, stock count, and quick task links.

Bot in action - automated checkout process