SauravKanchan / 10minutemail

Python wrapper for 10minutemail.com
https://pypi.org/project/python-10minutemail/
MIT License
11 stars 4 forks source link

Doesn't work anymore #2

Open ShadowMuffin512 opened 2 years ago

ShadowMuffin512 commented 2 years ago

Calling Mail() gives the following error: File "C:\Users\liord\AppData\Local\Programs\Python\Python38-32\lib\site-packages\minutemail.py", line 14, in init self.mail = self.session.get(NEW_EMAIL).json()['address'] File "C:\Users\liord\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\liord\AppData\Local\Programs\Python\Python38-32\lib\json__init__.py", line 357, in loads return _default_decoder.decode(s) File "C:\Users\liord\AppData\Local\Programs\Python\Python38-32\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\liord\AppData\Local\Programs\Python\Python38-32\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)

lyenliang commented 1 year ago

It looks like that something has changed in https://10minutemail.com/session/address. self.session.get('https://10minutemail.com/session/address') no longer returns the result directly.

https://10minutemail.com/session/address is protected by CloudFlare now. It prevents you from accessing the website through a robot.