carlodepieri / pymailtm Goto Github PK
View Code? Open in Web Editor NEWA python wrapper around the mail.tm web api.
License: GNU General Public License v3.0
A python wrapper around the mail.tm web api.
License: GNU General Public License v3.0
I tried to generate the token with this api request:
POST https://api.mail.tm/token
But I'm getting this error:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="robots" content="noindex,nofollow,noarchive" />
<title>An Error Occurred: Not Found</title>
<style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
<h1>Oops! An Error Occurred</h1>
<h2>The server returned a "404 Not Found".</h2>
<p>
Something is broken. Please let us know what you were doing when this error occurred.
We will fix it as soon as possible. Sorry for any inconvenience caused.
</p>
</div>
</body>
</html>
If you have any Idea that I made wrong please write me.
input: pip install pymailtm
output:
Collecting pymailtm
Could not find a version that satisfies the requirement pymailtm (from versions: )
No matching distribution found for pymailtm
input: pip install git+https://github.com/CarloDePieri/pymailtm.git
output:
Collecting git+https://github.com/CarloDePieri/pymailtm.git
Cloning https://github.com/CarloDePieri/pymailtm.git to /tmp/pip-7u2r_2c4-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.6/tokenize.py", line 452, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-7u2r_2c4-build/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-7u2r_2c4-build/
Install command with pip error occurs. I guess because setup.py doesn't exist. Can you please add setup.py to the repo?
New account created and copied to clipboard: [email protected]
Waiting for new messages...
Traceback (most recent call last):
File "c:\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Python39\Scripts\pymailtm.exe\__main__.py", line 7, in <module>
File "c:\python39\lib\site-packages\pymailtm\cli.py", line 29, in init
MailTm().monitor_new_account(force_new=args.new_account)
File "c:\python39\lib\site-packages\pymailtm\pymailtm.py", line 181, in monitor_new_account
account.monitor_account()
File "c:\python39\lib\site-packages\pymailtm\pymailtm.py", line 74, in monitor_account
new_msg = self.wait_for_message()
File "c:\python39\lib\site-packages\pymailtm\pymailtm.py", line 66, in wait_for_message
while len(self.get_messages()) == start:
File "c:\python39\lib\site-packages\pymailtm\pymailtm.py", line 39, in get_messages
for message_data in r.json()["hydra:member"]:
File "c:\python39\lib\site-packages\requests\models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "c:\python39\lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "c:\python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "c:\python39\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
How can I use mail.tm api in python I neeed some help to use it. Thanks
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.