andreinocenti/php-social-scrapper 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

andreinocenti/php-social-scrapper

最新稳定版本:1.0.1

Composer 安装命令:

composer require andreinocenti/php-social-scrapper

包简介

A package that scrap social media content

README 文档

README

It is a library to scrap social media data from a given URL.

Installation

composer require andreinocenti/php-social-scrapper

Supported Social Medias

  • Facebook
  • Instagram
  • Twitter
  • TikTok
  • LinkedIn

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

统计信息

  • 总下载量: 18
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-13