meyt / linkpreview

Get link preview in python
MIT License
46 stars 9 forks source link

JSON-LD support #15

Closed ummjackson closed 1 year ago

ummjackson commented 1 year ago

A lot of websites today include JSON-LD in the of their documents as a very rich source of metadata. This can be accessed with BS4 via:

soup.find('script', {'type':'application/ld+json'})

In addition to the methods already present in this library, have you considered adding grabbing the title, description, image etc. from the JSON-LD manifest?