⚠️ 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
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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yopmail-1.4.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yopmail-1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / yopmail-1.4.tar.gz
| Download URL | yopmail-1.4.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
097a3b92d19bada9c4972401f830db1530bb6fcfe977716bb84b96d8d1ed2cc3
|
|
BLAKE2b-256 checksum How to use checksums |
a809ccb51757997b2b1b3690a0b97885ae3e92e547e4a3c69f00e4bab8e4b097
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / yopmail-1.4-py3-none-any.whl
| Download URL | yopmail-1.4-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe9b84ff8dcbc3bd721f61dd1c5e862713c511c8ee531088cf132d48f2e3932d
|
|
BLAKE2b-256 checksum How to use checksums |
77aa952d8e335bf454c58454e862c0aefa5e7d720a8ef0f14ce9be3b364723ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|