dev-master
9999999-devProvides a crawler for Flink that returns meta information from Facebook OpenGraph tags
MIT
The Requires
The Development Requires
by Mark Horlbeck
Wallogit.com
2017 © Pedro Peláez
Provides a crawler for Flink that returns meta information from Facebook OpenGraph tags
This package provides a (currently) super simple additional method to Flamecore's Flink to allow parsing of links by retrieving a subset of Facebook OpenGraph tags., (*1)
Use composer to get the job done:, (*2)
composer require causelabs/flink-facebook-meta-crawler
In your code, use CauseLabs\AnalyzingCrawler to get an array back with OpenGraph data for the most common tags. If you need a different set of tags, you can build your own by utilizing the CauseLabs\WebpageAnalyzer::getOpenGraphDetails() method. This all depends on using Flamecore's Flink, of course., (*3)
use CauseLabs\Flink\Flink;
use CauseLabs\Flink\Crawler\AnalyzingCrawler;
$flink = new Flink();
$flink->addCrawler(new AnalyzingCrawler());
$info = $flink->fetch('https://www.youtube.com/watch?v=ZnHmskwqCCQ');
// $info = [
// 'type' => 'opengraph',
// 'site_name' => 'YouTube',
// 'title' => '-Yakety Sax- Music - YouTube',
// 'description' => 'Selfyexplanitory :P',
// 'image_url' => ...
// 'video_url' => ...
// ];
MIT, (*4)
Contact Mark Horlbeck at mark@causelabs.com for contributions, questions, etc., (*5)
Provides a crawler for Flink that returns meta information from Facebook OpenGraph tags
MIT