I am looking for a working way to automatically embed all local external images (i.e. images on the local file system) which are referenced in the HTML file like
<img data-src="img/my_image.png" />
Obviously this will probably involve the data
keyword in HTML. Regarding this problem I have read this SO answer and I tried the suggested tool inliner, but the tool seems to have trouble with external local resources like above.
Are there other proven ways/tools for this job which do handle above mentioned case, preferable currently maintained and maybe even in Python?