m9ebah/snapchat-scraper-php 问题修复 & 功能扩展

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

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

m9ebah/snapchat-scraper-php

最新稳定版本:v1.0.0

Composer 安装命令:

composer require m9ebah/snapchat-scraper-php

包简介

PHP library for downloading public Snapchat stories.

README 文档

README

Build License Repo Size Open Issues GitHub stars

📸 Project Description | وصف المشروع:

Snapchat Scraper PHP Library is a PHP library designed to scrape public Snapchat stories. The library allows you to retrieve media content (images and videos) along with timestamps from publicly available Snapchat stories, without affecting privacy or accessing private content.
مكتبة Snapchat Scraper PHP Library هي مكتبة PHP مصممة لاستخراج القصص العامة من سناب شات. تتيح لك المكتبة جلب محتوى الوسائط (صور وفيديوهات) مع التواريخ الزمنية من القصص العامة المتاحة على سناب شات فقط، دون التأثير على الخصوصية أو الوصول إلى المحتوى الخاص.

🚀 Installation Steps | خطوات التثبيت:

1. Install the Library using Composer | تثبيت المكتبة باستخدام Composer:

composer require m9ebah/snapchat-scraper-php

⚙️ How to Use the Library | كيفية استخدام المكتبة:

1. Initialize the Client and Scraper | تهيئة العميل والمكتبة:

<?php

require 'vendor/autoload.php';

use SnapchatScraper\Clients\HttpClient;
use SnapchatScraper\StoryDownloader;
use SnapchatScraper\SnapchatScraper;

// Initialize the client
$httpClient = new HttpClient();

// Specify where to save the downloaded files
$downloadDirectory = __DIR__ . DIRECTORY_SEPARATOR . 'downloads';

// Prepare the story download library
$storyDownloader = new StoryDownloader($downloadDirectory);

// Configure the main library
$scraper = new SnapchatScraper($httpClient, $storyDownloader);

// Specify the user name
$username = 'example_user';  // Example of a username

// Fetch Snapchat data
$snapchatData = $scraper->getSnapchatData($username);

// Fetch stories
$stories = $snapchatData['stories'];

// If there are stories, upload them.
if (!empty($stories)) {
    echo "Loading stories...\n";
    $storyDownloader->download($stories);
    echo "Stories uploaded successfully.\n";
} else {
    echo "There are no stories for this user.\n";
}

📸 Example Output | مثال على المخرجات:

The library will download media files (images and videos) for the given username and save them to the specified downloads folder.
المكتبة ستقوم بتنزيل الملفات الوسائط (صور وفيديوهات) لاسم المستخدم المحدد وحفظها في مجلد downloads.

🤝 Contribution | المساهمة:

We welcome all contributions to improve the library. You can open an Issue or submit a Pull Request.
نرحب بجميع المساهمات لتحسين المكتبة. يمكنك فتح مشكلة (Issue) أو إرسال طلب سحب (Pull Request).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-03-26