Giter VIP home page Giter VIP logo

katrevive's Introduction

KatRevive

GetBadges Game Scrutinizer Code Quality Build Status Contributors Licence Issues [Open] Issues [Closed]

About

KatRevive is a project to allow revival of the Kickass Torrents API dumps.

I apologise for this, but KatRevive will be down permanently from this location.

Ok DMCA, you win. Enough with the bullshit. It's gone.

Files

create_db.sql

This is the MySQL code needed to generate the database. By default, the username is root and the password is blank.
To use this, copy it into a MySQL terminal instance, or copy it into PHPMyAdmin or your respective MySQL manager.

index.php

This is the root file, and the file that you will use to view torrents. You can access other torrents by using the GET parameter of s.
This layout shows 5 columns.

  • Verified: Displayed as a star
  • Hash: The info hash for that specific torrent, this is unique in the db
  • Name: The name of the torrent
  • Category: What main category it was in on KAT, the DB also contains the category_id which allows for subcategories as well
  • URLs: The torrent file link, and the magnet link

install.php

The installer file. Just run this, and select an import type.
Please note, these will need to be downloaded beforehand and added to the import_lists folder.

There are 2 example import files with the same torrent, to demonstrate. The actual imports can be downloaded elsewhere.

Just select the type you want to import, and hit the import button.

import_db_list.php

This shouldn't be accessed from anywhere, it will automatically be called by using the install.php file.
Please don't run this more than once, and please note that it will be slow when installing.

api/index.php

The API, will create a JSON formatted array of torrents. Is limited to 20 at a time, and can be browsed using the GET parameter s.

gen_sql_import.php

Used to generate MySQL imports of any dump.

favicon.png

Just ignore this, it's the favicon to load when using the site in a browser.

funcs.php

No need to touch this file, unless changing the db details. It's self contained and used in the other files.

Instructions

Clone to your local or remote server using git clone https://github.com/PXgamer/KatRevive.git.

I have set this up to use MySQL with a username of root and no password. This can be changed in the funcs.php file, or during the install process.

Next, copy the code out of the create_db.sql file and run this in your MySQL administration tool. For example, in PHPMyAdmin, navigate to the SQL tab for the database, and paste it there. Then run this.

Copy your hourlydump.txt and/or dailydump.txt file(s) to the import_lists folder.

Open the install.php file in a browser, and check that no errors appear, if not, select the file you'd like to install. Then click import.

This can take a while depending on the number of torrents your file contains, I tested with 3 Million+ torrents in the data dump I had, which took roughly 5 minutes, alternatively you can generate a MySQL import file using the gen_sql_import.php file.

The Database/Table

The database is called kat_db by default and contains a single table t_collection. This table contains 10 columns, as follows:

  • torrent_info_hash
  • torrent_name
  • torrent_category
  • torrent_info_url
  • torrent_download_url
  • size
  • category_id
  • files_count
  • upload_date
  • verified

Hourly Dump Format

| TYPE | FORMATE ---|----------|-------------- 0 | HASH | [VARCHAR] 1 | TITLE | [VARCHAR] 2 | CATEGORY | [VARCHAR] 3 | KAT URL | [VARCHAR] 4 | TORCACHE URL | [VARCHAR] 5 | SIZE (Bytes) | [BIGINT] 6 | Category ID | [INT] 7 | Num of Files | [INT] 8 | UNKNOWN | [INT] 9 | UNKNOWN | [INT] 10 | DATE IN SECS | [BIGINT] 11 | VERIFIED | [INT]

Other Features

The API: https://github.com/PXgamer/KatRevive/tree/master/api
Main Search: https://github.com/PXgamer/KatRevive/tree/master/search
Hash Searching: https://github.com/PXgamer/KatRevive/tree/master/hash
MySQL Import Generation: https://github.com/PXgamer/KatRevive/tree/master/sql_imports

Gallery

Main Page

Index Image

Individual Torrent Pages

Individual Torrent Pages

Main Search System

Main Search

API Results

API Results

KAT Header Theme

KAT Header Theme

katrevive's People

Contributors

owenvoke avatar scrutinizer-auto-fixer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.