Download the PHP package gregory-gerard/rutube without Composer

On this page you can find all versions of the php package gregory-gerard/rutube. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package rutube

RutubeM3U8Scrapper

RutubeM3U8Scrapper helps you to retrieve a list of HLS streams / M3U8 playlist of a Rutube LiST video, with those HLS streams you can download a video, streaming it in your favorite video player or whatever you want. You still need an account at Rutube LiST website, but you don't need anymore to watch an ad or answer to their quiz.

I've developed RutubeM3U8Scrapper for myself so it's maybe not very scalable and bug-proof, but I thought other people would need it!

Install

Clone the repository

git clone https://github.com/Gregory-Gerard/RutubeM3U8Scrapper.git

Install dependencies (Guzzle) with composer

composer install

You also need PHP >= 7.0 installed on your computer.

apt install php

Configuration

If you want to use RutubeM3U8Scrapper in your CLI, you need to configure it.

cp config.example.php config.php (duplicate config.example.php to config.php and update your config)

Add your login (which is a mobile number with a + and your international dialling code in front of the mobile number) and password in $credentials array, this is required because of the design of Rutube LiST (RutubeM3U8Scrapper can't call Rutube LiST api without logging-in).

How to use

CLI

Simply run rutube.php with a video id, example:

php rutube.php 26f9dfab263c80f22c16b0ef1c4b77ad

php rutube.php 6105209

It should echo something like this


Programmatically

For documentation, check RutubeScrapper.php code, full example :

$instance->streamList() return a multidimensional array on two levels, with the resolution and the different bandwidths for each resolution with its url :

If an internal error occurs, RutubeScrapper throw a RutubeScrapperException. Otherwise, if it's a request error (like a 404 or bad request) a GuzzleException is thrown.

Use cases

Now with the HLS streams in your possession, you can download a Rutube LiST video with youtube-dl, ffmpeg or streaming it in VLC.

How it works

I did some reverse engineering into Rutube LiST network trace, so the scrapper code simply makes the same calls that a user makes when watching a video, to describe more precisely (you can also read RutubeScrapper.php):

To-Do


All versions of rutube with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
guzzlehttp/guzzle Version ^6.5
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gregory-gerard/rutube contains the following files

Loading the files please wait ....