grangier/python-goose

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

Opened this issue · 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.

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

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