andreinocenti / php-social-scrapper
A package that scrap social media content
1.0.1
2024-08-25 20:32 UTC
Requires
- php: ^8
- symfony/panther: ^2.1
Requires (Dev)
- pestphp/pest: ^2.35
This package is auto-updated.
Last update: 2024-10-25 20:51:04 UTC
README
It is a library to scrap social media data from a given URL.
Installation
composer require andreinocenti/php-social-scrapper
Supported Social Medias
- TikTok
Usage
use AndreInocenti\PhpSocialScrapper\SocialScrapper; $scrapper = new SocialScrapper(); $scrappedData = $scrapper->fetch('https://www.instagram.com/p/CT9J9Z9r1Zz/');
Important information
- For twitter videos we use Twitsave API. It is a third-party service so it can be offline or not working properly.
- Videos for TikTok, Instagram, Facebook, and LinkedIn are not supported yet, the package can scrap the text and some engagement data. But the video return as a blob.
For tests
## up the container docker compose up -d ## exec the test into the container docker exec php-social-scrapper ./vendor/bin/pest ## to stop the container docker compose down -v