piedweb/facebook-scraper

{ Harvest Data | Scrap } from Scrape Facebook public pages without an API key

0.0.75 2022-01-20 08:19 UTC

This package is auto-updated.

Last update: 2022-01-20 08:24:20 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

{ Harvest Data | Scrap } from Scrape Facebook public pages without an API key.

DISCLAMER : this code is share only for educational purpose. Using it probably against facebook's terms of service.

Installation

composer require piedweb/facebook-scraper

Usage

use PiedWeb\FacebookScraper\FacebookScraper;
use PiedWeb\FacebookScraper\FacebookLikeboxScraper;

$fbScraper = new FacebookScraper('myPageId');
// OR
$fbScraper = new FacebookLikeboxScraper('myPageId');

$fbScraper->getPosts();

/** @Return array with subarray containing
 * publish_time
 * post_id
 * text
 * comment_number
 * like_number
 * images array
 */

Testing

composer test

Todo

  • review
  • post comment

Credits

License

The MIT License (MIT). Please see License File for more information.

PHP Packages Open Source