python-goose icon indicating copy to clipboard operation
python-goose copied to clipboard

og:image is not parsed correct if e.g. og:image:width exists on page

Open vonholst opened this issue 9 years ago • 1 comments

og:image is parsed correctly at first if there are more og:image attributes, e.g. og:image:width it replaces the image attribute.

vonholst avatar Dec 08 '15 12:12 vonholst

I would suggest the following modification: opengraph_dict.update({u"_".join(attr.split(":")[1:]): value})

This will yield image, image_width, image_height, ...

vonholst avatar Dec 10 '15 13:12 vonholst