rklf / yopmail Goto Github PK
View Code? Open in Web Editor NEWGet mails from a Yopmail inbox, save them
Get mails from a Yopmail inbox, save them
Hi again,
In fact problem is even worse then issue #1.
When I create an empty venv
, then run pip install yopmail
, everthing goes fine, but only metadata about the package is installed ; no code is getting installed. See in the listing of the venv
directory <venv>/lib/python3.10/site-packages
below, there is no yopmail directory, whereas for all the dependencies everything is OK:
ls ~/Python/Yopmail/lib/python3.10/site-packages
plop ✕ +
Permissions Size User Date Modified Name
drwx------ - user 28 Jul 22:13 _distutils_hack
drwx------ - user 28 Jul 22:13 beautifulsoup4-4.12.2.dist-info
drwx------ - user 28 Jul 22:13 bs4
drwx------ - user 28 Jul 22:13 bs4-0.0.1.egg-info
drwx------ - user 28 Jul 22:13 certifi
drwx------ - user 28 Jul 22:13 certifi-2023.7.22.dist-info
drwx------ - user 28 Jul 22:13 charset_normalizer
drwx------ - user 28 Jul 22:13 charset_normalizer-3.2.0.dist-info
.rw------- 152 user 28 Jul 22:13 distutils-precedence.pth
drwx------ - user 28 Jul 22:13 idna
drwx------ - user 28 Jul 22:13 idna-3.4.dist-info
drwx------ - user 28 Jul 23:07 pip
drwx------ - user 28 Jul 23:07 pip-23.2.1.dist-info
drwx------ - user 28 Jul 22:13 pkg_resources
drwx------ - user 28 Jul 22:13 requests
drwx------ - user 28 Jul 22:13 requests-2.31.0.dist-info
drwx------ - user 28 Jul 22:13 setuptools
drwx------ - user 28 Jul 22:13 setuptools-59.6.0.dist-info
drwx------ - user 28 Jul 22:13 soupsieve
drwx------ - user 28 Jul 22:13 soupsieve-2.4.1.dist-info
drwx------ - user 28 Jul 22:13 urllib3
drwx------ - user 28 Jul 22:13 urllib3-2.0.4.dist-info
drwx------ - user 28 Jul 22:13 yopmail-0.5.dist-info
It would be very cool to have an api through your library to empty the inbox of particular yopmail, if they allow this to be done through api. the problem is that sometimes we have emails with the same content, and we need to pick the one that was just sent, but due to the delay of receiving the email, we are getting the previous email. A functionality to clear the inbox will solve this issue.
See PR #6
This feature can be used to remove mail.
python3 yopmail/example.py Traceback (most recent call last): File "yopmail/example.py", line 3, in <module> from yopmail import Yopmail File "/home/lmb/yopmail/yopmail/__init__.py", line 1, in <module> from .yopmail import Yopmail File "/home/lmb/yopmail/yopmail/yopmail.py", line 29, in <module> class Yopmail: File "/home/lmb/yopmail/yopmail/yopmail.py", line 45, in Yopmail def request(self, url: str, params=None, proxies=None, context: str = None) -> requests.models.Response|None: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
Hello,
You forgot to explain how to import
your module in the README :)
[x] Couldn't process ycons request: <Response [400]>
for mail_id in mails_ids:
TypeError: 'NoneType' object is not iterable
The code is taken from the example, I get the following error, how can I fix it?
I have a problem where I need to get only emails that were received after a certain date-time, but I cannot find a way to do this. 1 possible solution could be if there was a way to get the received dates of emails, so I can filter myself, the other option could be to have such a filter directly in library, e.g. filter not only by page, but by min date received
Code:
from yopmail import Yopmail
y = Yopmail('test', proxies=None)
mails_ids = y.get_mail_ids()
print(mails_ids)
Output:
[]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.