How hamzaaitbrik/redditdmbot works
Project type and purpose
• This is a Python-based automation tool (“RedditDMBot”) whose sole purpose is to log into multiple Reddit accounts in Chrome (via CDP), navigate to a user’s chat page, and send DMs in bulk. It relies on a private browser-driving framework (zendriver) instead of Selenium/Playwright to avoid detection.
File structure
• Top-level entrypoint:
• RedditDMBot.py – orchestrates the bot’s workflow
• modules.py – helper functions
• Configuration/resources:
• rsrc/ – JSON config files (config.json, proxies.json, links/locators/paths), JS snippets, Chrome extension for proxying
• Account management:
• rdt/ – account definitions (accounts.json), toss_accounts.csv
• Data stores:
• db/ – input list of usernames, and CSVs for failed/sent usernames
• results/ – final output grouping (failed/succeeded)
• Logging:
• log/, logs/log – logging output
• Browser automation engine:
• zendriver/ – vendored CDP-based framework modules (cdp/*, core/*)
README for additional insights
• The workflow (login → navigate → check message status → send → update CSV → rotate account) is fully described.
• Dependencies: Python 3.11, Pipenv, zendriver framework, optional proxies.