PHP code example of xurumelous / torrent-scraper

1. Go to this page and download the library: Download xurumelous/torrent-scraper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

xurumelous / torrent-scraper example snippets




$scraperService = new \Xurumelous\TorrentScraper\TorrentScrapperService(['ezTv', 'kickassTorrents']);
$results = $scraperService->search('elementaryos');

foreach ($results as $result) {
	$result->getName();
    $result->getSeeders();
    $result->getLeechers();
    $result->getTorrentUrl();
    $result->getMagnetUrl();
}