Open Graph Parser

A simple library parsing the open graph data of a given URL.

Usage example:

var data = await OpenGraphParser.getOpenGraphData("https://share.jodel.com/post?postId=5bbf7b84ee274646a2d96147&_branch_match_id=536882993144588943")

print(data['image']);

Result is: http://img.jodel.com/5bbf7b84ee274646a2d96147_pp4ELmdCl0PbKDNF_image.jpeg

Required values are at this moment title and image. If they are not present, this library tries to create a fallback using the title tag in head and the first image it can find in the body.

Libraries

open_graph_parser