acidjazz/tubestrip

YouTube Crawler

v0.1.5 2020-07-08 18:35 UTC

This package is auto-updated.

Last update: 2024-04-09 02:52:38 UTC


README

68747470733a2f2f746f70706e672e636f6d2f75706c6f6164732f707265766965772f796f75747562652d736f6369616c2d6d656469612d69636f6e2d736f6369616c2d6d656469612d69636f6e2d706e672d69636f6e652d646f2d796f75747562652d31313536323935383739326f7171657778723677392e706e67

Simple youtube scraper

Version Total Downloads License codecov

early development

Features

  • Search Youtube
  • Get a video title, description, view count, and published date from a Youtube ID

Installation

Install tubestrip with composer:

composer require acidjazz/tubestrip

Examples

<?php
use acidjazz\tubestrip\TubeStrip;

$ts = new TubeStrip();
$results = $ts->search('GETV ANSI Show');
dump($results);
array:20 [▼
  0 => {#3768 ▼
    +"id": "r_cYOi3pnhA"
    +"title": "GETV: ANSI Art for the Masses"
  }
...
<?php
use acidjazz\tubestrip\TubeStrip;

$ts = new TubeStrip();
dump($ts->get('r_cYOi3pnhA');
{#1588 ▼
  +"title": "GETV: ANSI Art for the Masses"
  +"description": """
    Back before there was the Internet, early caveman dialed into computer bulletin board systems or BBSes to get their online fix. Many of these boards distinguish ▶
    
    Originally posted:
    http://www.geekentertainment.tv/2008/...
    """
  +"viewCount": 55585
  +"date": "Feb 9 2008"
}