aquajo/facebook-event-scraper

A simple scraper for events.

v1.0.2 2025-04-09 20:43 UTC

This package is auto-updated.

Last update: 2025-08-09 21:27:33 UTC


README

This is an almost feature-complete php port of the TS & npm-Library from fancescov1.

Be sure to have ext-curl aka php-curl installed for the desired php version.
This is mandatory, allowing brotli decoding of facebook's response html.

Install & Use

Run composer require aquajo/facebook-event-scraper.

Then use it like this:

require_once __DIR__ . '/vendor/autoload.php';

use FacebookEventScraper\Scraper;

// scrape single event - details
$scraper = new Scraper();
$specificEventDetails = $scraper->scrapeEvent('1830273880516670'); // or use 'https://www.facebook.com/events/1830273880516670'
print_r($specificEventDetails);

// scrape events by organizer (8 most recent)
$organizerEvents = $scraper->scrapeEvents('github'); // or use 'https://www.facebook.com/GitHub/events/'
print_r($organizerEvents); // [id1, id2, ..., id8]