05-11-2017, 01:27 AM
![[Image: Yq6Jg42.png]](http://i.imgur.com/Yq6Jg42.png)
RIVR is the torrent search engine. It scrapes torrent websites (Kickass, ThePirateBay, isoHunt, Limetorrents, 1337x), and gives fast results with a ranking based on torrent hash, seeders and leechers. For each torrent it provides a magnet link and when available a torrent file displaying its contents. RIVR is a personal project I decided to make public with the hope of finding people to build a distributed torrent search engine with high quality results.
Features
-Scrapers for Kickass, ThePirateBay, isoHunt, Limetorrents, 1337x
-Fast search using Sphinx
-Autocomplete suggestions
-Movie and TV series info when the search query is relevant
-View torrent contents
Installation
Code:
-Create a MySQL database and import schema.sql, sources.sql and trackers.sql from install folder.
-Download and import the MySQL dump from http://sh0rt.tk/nYaHn . It contains ~13M torrents.
-Edit includes/config.php with your MySQL host, username, password and database name.
-Edit install/sphinx.conf.in (mysql_all source) with your MySQL host, username, password and database name and change all the file paths to yours.
-Use install/sphinx.conf.in to create the Sphinx indexes:
-sudo -u sphinx indexer --config sphinx.conf.in --all
-Access Sphinx indexes with MySQL client:
-mysql -h 0 -P 9306
-Execute the following commands to attach regular indexes to real-time indexes:
--ATTACH INDEX orig TO RTINDEX rtindex;
--ATTACH INDEX mysql0 TO RTINDEX rtindex0;
--ATTACH INDEX mysql1 TO RTINDEX rtindex1;
--ATTACH INDEX mysql2 TO RTINDEX rtindex2;
--ATTACH INDEX mysql3 TO RTINDEX rtindex3;
-Start the Sphinx search daemon.
-Create a cron job to call admin/indexer.php for example every 12 or 24 hours.
-admin/tupdater.php updates the seeds/leech of all torrents in groups of 73. The final numbers are the maximum among those found in all the trackers. If we have 10M torrents this makes ~960,000 requests in total to the 7 torrent trackers, so it is not recommended to run it at the moment until we define some criteria to limit the number of torrents we need to get stats every time (for example we don't want recently (re)indexed links).
Demo: LINK
Downoad: LINK