PHPackages                             mirazmac/facktube - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. mirazmac/facktube

AbandonedArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

mirazmac/facktube
=================

Scrape YouTube and fack on Google

v0.1(7y ago)357MITPHPPHP &gt;=5.4.0

Since Mar 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/MirazMac/FackTube)[ Packagist](https://packagist.org/packages/mirazmac/facktube)[ RSS](/packages/mirazmac-facktube/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

FackTube
========

[](#facktube)

YouTube Public Data Scrapper that parses HTML for the data

**FackTube** is a scrapper for retrieving YouTube public data. Currently it can only scrape videos. Channels, playlists and single video will be added in future. Feel free to fork and add.

It's not a reliable method for fetching data unless you use tons of paid proxies. And I wouldn't recommend using it on Production either. But hey, YouTube's been a real jerk lately with their Data API v3. It's the least we can do, so lets fack on YouTube.

### Install via Composer

[](#install-via-composer)

```
composer require mirazmac/facktube
```

### Limitations

[](#limitations)

- You can't limit or change the amount of results per page
- It depends on YouTube's internal html output, and since YouTube heavily relies on JavaScript it can only show the results YouTube provides with no filter whatsoever
- Its illegal and YouTube may block your IP if you send too many requests

Usage
-----

[](#usage)

Check **usage** folder for complete usage examples.

### Searching Videos

[](#searching-videos)

```
use MirazMac\FackTube\FackTube;

$fack = new FackTube($options);

try {
    $results = $fack->videos('Honest Trailer');
} catch (\Exception $e) {
    echo $e->getMessage();
    exit();
}

print_r($results);
```

#### But hey, if html parsing is so messy, Why not AJAX endpoints?

[](#but-hey-if-html-parsing-is-so-messy-why-not-ajax-endpoints)

Well, yeah I did that previously with [https://github.com/MirazMac/YouScrape](YouScrape) and now YouTube completely revamped their AJAX endpoints with session based Tokens and other stuff. So, thats a no no. But if you find a way to bypass those create a new repo and let me know, I'll be happy to contribute.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2675d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13865787?v=4)[Miraz Mac](/maintainers/mirazmac)[@MirazMac](https://github.com/MirazMac)

---

Top Contributors

[![MirazMac](https://avatars.githubusercontent.com/u/13865787?v=4)](https://github.com/MirazMac "MirazMac (3 commits)")

### Embed Badge

![Health badge](/badges/mirazmac-facktube/health.svg)

```
[![Health](https://phpackages.com/badges/mirazmac-facktube/health.svg)](https://phpackages.com/packages/mirazmac-facktube)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M41](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

155.7k](/packages/art4-requests-psr18-adapter)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

112.9k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
