Open ShadowMuffin512 opened 2 years 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.
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)