andreinocenti / php-social-scrapper
A package that scrap social media content
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/andreinocenti/php-social-scrapper
Requires
- php: ^8
- symfony/panther: ^2.1
Requires (Dev)
- pestphp/pest: ^2.35
This package is auto-updated.
Last update: 2025-09-25 22:47:56 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