Skip to main content

A Python module to get mails from a Yopmail inbox, save them

Project description

⚠️ 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yopmail-1.9.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

yopmail-1.9-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file yopmail-1.9.tar.gz.

File metadata

  • Download URL: yopmail-1.9.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.2

File hashes

Hashes for yopmail-1.9.tar.gz
Algorithm Hash digest
SHA256 a8d47c2b7b604f16e397bc01c69a296801fa98234750ff3d7f75342279c28d63
MD5 10d25970866501a71bcdd252de8f612b
BLAKE2b-256 853db6b972df6bf920dec6caed8bb55448b515fc9e7be022195f86e01bd4ac15

See more details on using hashes here.

File details

Details for the file yopmail-1.9-py3-none-any.whl.

File metadata

  • Download URL: yopmail-1.9-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.2

File hashes

Hashes for yopmail-1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 872bf2e6a0d17e7aec9db084641cf80f3dc01ae75e14a6464154c21b34fd3420
MD5 b4fa621b18757cff0f1bd93b843869e0
BLAKE2b-256 4297700284d666f2669cbc340a4d44ce400784ea98d404d31530c50cd9526f17

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page