To get emails from a certain date onwards, use the received
parameter.
For example, to get emails after January 1st, 2023 (UTC):
username = "username123"
after = "2023-01-01"
Outlook.get_emails(username, received=after)
To limit your email retrieval to 10, use the max
parameter:
username = "username123"
Outlook.get_emails(username, max=10)
This fetches the 10 most recent emails in your inbox.
To collect all unread emails, use the Outlook.get_unread_emails
method:
username = "username123"
unread_emails = Outlook.get_unread_emails(username)
print(unread_emails)
Note: This action marks unread emails as read.
To get both primary and spam emails, set the with_spam
parameter to True
:
username = "username123"
emails = Outlook.get_emails(username, with_spam=True)
print(emails)
You may use proxies as follows:
proxies = [
"http://myusername1:[email protected]:8080",
"http://myusername2:[email protected]:8080",
]
Outlook.create_accounts(count=4, proxies=proxies)
Also, we will rotate the proxies automatically.
Currently, manual account creation is recommended as popular proxies like Bright Data and IPRoyal refuses to connect for signup urls.
However, if you know of any Proxy Provider that works for creating Outlook Accounts, please let us know in the Github Discussions here, and we will add them to the list. This will help you earn Good Karma.
During our testing, IPRoyal worked well for getting/sending emails. Avoid using Bright Data as it refuses to connect.
Chrome was getting detected, and we were facing the following problems:
- Captchas were much harder and longer to solve (10 steps long).
- Even after successfully solving the Captcha, we were asked to solve it again and again in a loop.
So, we used Firefox, which doesn't cause these issues, and Captchas are much easier to solve.
If you encounter the error API Rate limit exceeded. You have to add GH_TOKEN
, which is common in Ubuntu, follow these steps:
- Get a GitHub Token by following these instructions. Your token will look something like
ghp_3fMk7naX9EypRQlG4jHsUoF6Zc1TbYvW8AeP
. It's a bit tedious I know, but you're just one step away from creating Outlook accounts. - Paste the following code into
main.py
. Replaceyour_github_token_here
with your GitHub token:from src import Outlook import os love_it_star_it = '''Love It? Star It! ⭐ https://github.com/omkarcloud/outlook-account-generator/''' os.environ['GH_TOKEN'] = "your_github_token_here" Outlook.create_accounts()
- Run
python main.py
and you are good to go.
Absolutely. It's trusted by thousands of developers globally for creating Outlook accounts.
No. It's meant for legitimate uses like business, testing, and personal accounts. Misuse for spam or malicious acts is against our and Microsoft's policies.
For further help, ask your question in GitHub Discussions. We'll be happy to help you out.
Love It? Star It ⭐!
Become one of our amazing stargazers by giving us a star ⭐ on GitHub!
It's just one click, but it means the world to me.