data-uri

How to parse data-uri in python?

How to parse data-uri in python? Question: HTML image elements have this simplified format: <img src=’something’> That something can be data-uri, for example: data:image/png;base64,iVBORw0KGg… Is there a standard way of parsing this with python, so that I get content_type and base64 data separated, or should I create my own parser for this? Asked By: blueFast …

Total answers: 6