Wes Turner did a great presentation demonstrating “HTML parsing, JSON-LD, RDFa, and schema.org in order to add Schema.org RDFa markup to @TheGlobalGoals for Sustainable Development at http://www.globalgoals.org/“.
https://github.com/westurner/pyglobalgoals/blob/develop/notebooks/globalgoals-pyglobalgoals.py.ipynb
And you can check here to see Wes’s other Python endeavors and tools:
https://westurner.org/