Skip to content

deblandns/OutlookMakerPro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Œ Core Tools (with Explanations) Selenium – Stable and widely supported automation tool, best with undetected-chromedriver to evade bot detection. Playwright – More modern, supports native waits and browser context isolation. Async-based, recommended for more advanced scripting. βœ… Non-headless Execution – Running in full browser mode is crucial when solving CAPTCHAs manually and simulating human behavior. Dynamic Engine Switching – Architect the system to allow switching between Selenium and Playwright easily, for flexibility and testing. πŸ“š Recommended Libraries (with Tips) selenium / undetected-chromedriver: Avoid detection by using undetected Chrome variants. playwright / playwright-stealth: Stealth plugin reduces fingerprinting; built-in waits reduce need for sleep(). pandas: Easy Excel reading/writing with tabular data. openpyxl: Used by pandas under the hood for .xlsx, allows appending without data loss. selenium-wire: Useful for intercepting traffic or adding proxies dynamically to Selenium. fake-useragent / random-user-agent: Helps cycle realistic user-agents to avoid being flagged. human-cursor: Simulates smooth mouse movements like a human would make, to defeat bot detection. tenacity: Retry operations with exponential backoff. Essential for stability and resilience. logging: Use Python’s built-in logging to trace sessions, errors, proxy failures, etc. 🧩 Modular Architecture (Detailed Breakdown) Configuration Module: config.py should manage all paths, constants, toggles, proxies, user-agent lists. Data Loader: Loads name/email/phone lists from .txt or .csv, with deduplication logic. Proxy Manager: Either from a file or API. It should return a new proxy per account creation. Browser Controller: Initializes browser session, applies stealth, opens tab, passes to Form Filler. Form Filler: Implements site-specific logic (Page Object Model suggested). Fills all fields, waits for UI transitions. Captcha Handler: Detects CAPTCHA presence and waits for manual solving (input("Solve captcha then press Enter")). Output Writer: Uses pandas to append rows to Excel or create it if not present. Logger: Central logging class. Capture events like proxy failures, timeouts, success cases. Main Runner: Iterates through dataset, applies proxy, solves form, logs result, moves to next. πŸ” Stealth & Evasion (Anti-Bot Best Practices) Rotate User-Agent – Change browser fingerprint per session. Inject Proxies – Use residential or mobile proxies if possible. Rotate each session. Simulate Human Behavior: Use ActionChains in Selenium or mouse.move() in Playwright. Add random typing delays, scrolling, hovering. Randomized Delays – Sleep for 1–3 seconds randomly between actions. Avoid exact timing. Avoid Fingerprinting – Avoid WebDriver signatures, disable headless flags, and spoof common attributes (navigator.webdriver, etc). πŸ›‘οΈ Robustness (Resilience & Recovery) Try/Except Wrapping – Wrap element clicks, page loads, input typing in try blocks. Retry on Failures – Use tenacity to retry failed elements with wait_random_exponential(). Log Failures – Record what failed, on which step, with timestamp. Continue on Error – Even if one account fails, the script should continue. πŸ“€ Excel Output (Best Practices) Append Mode – Use if file.exists: append, else create new. Avoid Overwrite – Never drop existing Excel rows unless explicitly asked. Separate Sheet for Errors – Log all failed sessions in failures.xlsx or a second sheet like Sheet2. βš™οΈ Future Improvements CAPTCHA Solver – Add support for external solving (e.g., 2Captcha, Anti-Captcha) via API for full automation. GUI – A simple Tkinter or PyQt GUI can help trigger runs manually. Dockerization – Encapsulate the script for consistent environment and deployment. Database Support – Replace Excel with a SQL database if scaling up.# OutlookMakerPro

About

OutlookMakerPro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages