Code Monkey home page Code Monkey logo

yopmail's Introduction

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

yopmail's People

Contributors

rklf avatar stepandy avatar hp-01 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.