A Python wrapper to generate real Outlook/Hotmail accounts and fetch OTPs via JSON.
Project description
Outlook Account Generator (API Wrapper)
A lightweight Python library to generate real Microsoft Outlook & Hotmail email addresses instantly. Unlike standard temp-mail services, these domains have high trust scores on major platforms.
This library allows you to access inboxes via JSON to fetch OTP codes automatically. No Selenium, Puppeteer, or headless browsers required.
🚀 Features
- Real Domains: Generates
@outlook.comand@hotmail.comaddresses. - JSON Inbox: Fetch emails and verification codes via a simple method.
- Secure: Uses encrypted tokens for session management.
- Fast: Purely request-based (Lightweight & Fast).
📦 Installation
You can install the package via pip:
pip install outlook-account-generator
🔑 API Key Required
To use this library, you need an API Key. 👉 Get your Free API Key Here
⚡ Quick Start Guide
1. Initialize the Client
First, import the library and initialize it with your RapidAPI Key.
from outlook_account_generator import OutlookGen
# Replace with your actual API Key
API_KEY = "YOUR_RAPIDAPI_KEY_HERE"
api = OutlookGen(API_KEY)
2. Generate a New Account
You can choose between outlook or hotmail.
# Create a new Outlook account
try:
account = api.create_account("outlook")
email = account['email']
token = account['enc_token']
print(f"✅ Generated Email: {email}")
except Exception as e:
print(f"Error: {e}")
3. Wait for OTP / Email
Use the wait_for_otp helper function to automatically poll the inbox until a message arrives.
print(f"[*] Waiting for email on {email}...")
# Checks inbox every 5 seconds, times out after 60 seconds
email_data = api.wait_for_otp(email, token, timeout=60)
if email_data:
print("\n📩 New Email Received:")
print(f"From: {email_data['sender']}")
print(f"Subject: {email_data['title']}")
print(f"Body: {email_data['content']}") # Content is HTML-stripped
else:
print("❌ No email received within timeout.")
⚖️ Disclaimer
This tool is designed for educational purposes, software testing, and automation development. Please refer to the RapidAPI Terms for usage limits.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file outlook_account_generator-1.0.2.tar.gz.
File metadata
- Download URL: outlook_account_generator-1.0.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
695bfb3ecd1114c6f100881bd95cc642ff78678b602ddec8b71554aefae11499
|
|
| MD5 |
824be4c11acc5e5b5ebc7c39d4d0f332
|
|
| BLAKE2b-256 |
d2e72afa255ef6dec7f2e263598e67e5f5f9983e35abd631451f766e6e4bdbf8
|
File details
Details for the file outlook_account_generator-1.0.2-py3-none-any.whl.
File metadata
- Download URL: outlook_account_generator-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36341e656b60904d607978308e79943596525dea02b0d7b9a362a338ad1b9cca
|
|
| MD5 |
c54f70869a47194cbe005c1b42760542
|
|
| BLAKE2b-256 |
4035c6121af458db13f24d1f9f19d049e2f9550e14ab1e00e7297c0f8e8c073e
|