aquajo/facebook-event-scraper
最新稳定版本:v1.0.2
Composer 安装命令:
composer require aquajo/facebook-event-scraper
包简介
A simple scraper for events.
README 文档
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]
统计信息
- 总下载量: 62
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-09