qhoekman/videoscrapers

This package is abandoned and no longer maintained. No replacement package was suggested.

Scraping rich media resources from various file sharing websites.

dev-master 2015-01-03 20:29 UTC

This package is not auto-updated.

Last update: 2020-01-24 15:58:57 UTC


README

This Laravel 4 package provides a variety of video scrapers:

  • video44

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require qhoekman/videoscrapers.

"requirev": {
	"qhoekman/videoscrapers": "dev-master"
}

Next, update Composer from the Terminal:

composer update 

Once this operation completes, the final step is to add the alias. Open app/config/app.php, and add a new item to the aliases array.

"VideoScrapers"   => 'QHoekman\VideoScrapers\VideoScrapers'

That's it! You're all set to go.

Usage

You can use the scraper like the following:

$iframe = '<iframe src="http://www.video44.net/gogo/?w=718&amp;h=438&amp;file=naruto-001.flv&amp;sv=1 " scrolling="no" width="718" height="438" marginheight="0" marginwidth="0" frameborder="0"></iframe>';
return VideoScrapers::instance()->video44->decodeStreamByIframe($iframe);