Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE ...
- >>> json.loads('<!DOCTYPE')
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
- return _default_decoder.decode(s)
- File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
- obj, end = self.raw_decode(s, idx=_w(s, 0).end())
- File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
- raise JSONDecodeError("Expecting value", s, err.value) from None
- json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- print(url.text)
Add Comment
Please, Sign In to add comment