GithubHelp home page GithubHelp logo

jnaudon / piratesbey Goto Github PK

View Code? Open in Web Editor NEW

This project forked from piratas-ar/piratesbey

0.0 2.0 0.0 1.28 MB

herramientas para backupear y mostrar torrents

JavaScript 60.51% Python 27.87% HTML 6.07% CSS 3.19% Handlebars 2.36%

piratesbey's Introduction

Gracias a archive.org, tpb archive, Karel Bilek y Rick Falkvinge por la diferente data y scripts.

Sources

Archivos fuentes en formato compatible actualizados seran liberados como torrent, mientras tanto:

The Pirate's Bey

Requirements:

  • Node JS

  • Java 7 (for elasticsearch)

Running the application:

  1. Clone this repository

  2. Run npm install

  3. Setup the database using your mysql client

create database piratesbey_dev;
grant all privileges on piratesbey_dev.* to 'piratesbey'@'localhost' identified
by 'piratesbey';
flush privileges;
  1. Run node index.js and check out the app at http://localhost:1337

Search engine

It uses Elastic Search to create a distributed search engine for torrents. Anyone will be able to join the network to host the bigger torrents database in the world.

The search engine is embedded into the application, so you just need to follow the installation instructions and the site will use it by default.

New torrents added to the database will be automatically synchronized with the search engine.

Remember to configure your firewall to allow connections from ports 9200:9400 in order to make the nodes see each other in the cluster.

Cargar Sources y Scrapear TPB(s)

Los scripts estan tan optimizados como fue posible, los sources no estan incluidos (por ahora).

bin/db.py
---------
con = mdb.connect(host='localhost', user='root', passwd='', db='piratesbey');

Cargar desde un mirror

python bay2bey_torrents.py 
--------------------------
source_site = 'http://oldpiratebay.org'
min_tpb_id = 3211594
max_tpb_id = 11671120

Cargar desde un backup en formato csv (tpb-archive)

python csv2bey_torrents.py
--------------------------
csv_path = 'sources/'
min_tpb_id = 3211594
max_tpb_id = 11671120

Cargar desde un backup en formato xml (karel)

python xml2bey_torrents.py
--------------------------
python xml2bey_comments.py
--------------------------
xml_path = 'sources/rich-and-valid.xml'
min_tpb_id = 3211594

Cargar desde un backup en formato csv (reddit)

python csv2bey2_torrents.py
---------------------------
csv_path = 'sources/tpb.txt'

Si te da error de byte NULL simplemente buscalo y borralo

grep -Pan '\x00' ../sources/tpb-9-14.txt

piratesbey's People

Contributors

zbyk avatar seykron avatar lobit0 avatar

Watchers

James Cloos avatar JIND 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.