Skip to main content
⚠️ Disclaimer: Reverse engineering process is shown for research purposes only.

👏 Get mails from Yopmail inbox

Get mails from a Yopmail inbox, save them as .html

📖 Usage:

Install the latest version from PyPI by using pip:

pip install yopmail

Import Yopmail class from yopmail module

from yopmail import Yopmail

Instantiate Yopmail class with username as parameter (with @ or not) and provide proxies if needed

y = Yopmail('test', proxies=None)

Using get_mail_ids() method you get mail ids. You can provide (optional) page parameter otherwise page 1 is used as default. You can as well provide proxy parameter which would override instantiated class proxies.

mails_ids = y.get_mail_ids(page=3)

Iterate over mail ids to get mail body using:

for mail_id in mails_ids:
    mail = y.get_mail_body(mail_id, show_image=True)
    mail.save()

Again you can provide proxy parameter which would override instantiated class proxies. show_image is used to load mail images (equivalent to "load remote content" in most mail clients) You can use save() method to save mail as .html.

Feel free to contribute 🤝

📝 TODO:

  • Add CSS to saved html mail
Feel free to contact me wherever you find me

Metadata

Release files for yopmail 1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yopmail 1.7
File Size Uploaded
yopmail-1.7.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yopmail 1.7
File Interpreter ABI Platform
yopmail-1.7-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / yopmail-1.7.tar.gz

Download URL yopmail-1.7.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2a06238f502c8f8ca4216b6fcdec7b4573028aad2b5a2b1490a554b7b8942d06
BLAKE2b-256 checksum
How to use checksums
fd9b065d94ea0db03c8413a68ce158aeab09aceab1af7fa4b47a6e56d24b97c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / yopmail-1.7-py3-none-any.whl

Download URL yopmail-1.7-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
baf80333aa8e825b4edba7168efc7f6f8e5f12473bb5e3ca71d1d3fc4275c35f
BLAKE2b-256 checksum
How to use checksums
ab5f711725a8ac06073842ad71e32b1e48cf4e16e4c72ae57d039a49b53975ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

1.9

2 release files

1.8

2 release files

This release

1.7 This release

2 release files

1.6

2 release files

1.5

2 release files

1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page