I’m looking for an existing library that works like Facebook’s web-page preview feature, i.e. a) retrieves meta-data from web pages (either from OpenGraph tags or normal <title>
and <meta>
tags) and b) retrieves the most 3-5 prominent images, like described in this article: https://tech.shareaholic.com/2012/11/02/how-to-find-the-image-that-best-respresents-a-web-page/
I am thinking of implementing this myself based on phantom.js and/or cheerio, but if there’s already an existing open-sourced library (either Meteor, npm, bower), this would be fantastic.