2
0
mirror of https://github.com/urbanguacamole/torrent-paradise synced 2024-10-31 21:20:13 +00:00
Go to file
2019-12-23 20:34:14 +01:00
api Add telemetry 2019-12-23 20:34:14 +01:00
generate-top-torrents Add Top torrents view by seed count 2019-03-09 12:56:11 +01:00
import-tpb-dump Initial commit 2019-01-13 15:10:54 +01:00
index-generator Update dependencies 2019-12-23 20:34:14 +01:00
seedleech-daemon Tweak seedleech 2019-10-22 17:00:53 +02:00
spider Clean up 2019-01-31 13:51:03 +01:00
website Update ad snippet code 2019-09-08 14:52:43 +02:00
.gitignore Add telemetry 2019-12-23 20:34:14 +01:00
README.md Add link to MEGA for database dump download 2019-11-24 12:53:39 +01:00
snippets.sql Add more handy SQL snippets 2019-12-23 20:34:14 +01:00
torrentparadise-staticbackup.torrent Add link to torrent with database dump 2019-10-22 17:01:33 +02:00
update-index.sh Revamp seedleech count collection 2019-03-30 10:49:31 +01:00

About

What is this?

If you don't know what Torrent Paradise is, see the website.

This is a repository of all the tools I use to build and run torrent-paradise.ml. The 'code name' of the project is nextgen (next gen torrent search), so don't be surprised if it comes up somewhere.

Can you help me?

Maybe, open an issue. Be sure to demonstrate an effort that you tried to solve the problem yourself.

Setup

Here's what the setup looks like rn:

  • VPS, Debian Stretch, 2 GB RAM
    • PostgreSQL 9.6. pg_hba.conf contains this:

      local   all             all                                      peer
      # IPv4 local connections:
      host    nextgen         nextgen          localhost               md5
      
    • IPFS v0.4.18

    • user with username nextgen on the server

  • my laptop w/ Linux
    • Go toolchain installed
    • node v10.15 & npm
    • Python 3 (required only for index-generator/fix-metajson.py)

The programs create their own tables in the DB that they need. Database name is "nextgen".

What I did first after getting the server up and running was importing the TPB dump. Download https://thepiratebay.org/static/dump/csv/torrent_dump_full.csv.gz to the import-tpb-dump directory and run go run.

There is a complete database dump available in torrentparadise-staticbackup.torrent, so you don't have to do that. This same database dump is available on https://mega.nz/#!ddESlChb!3YBqfxG-a4fwpXzPG3QsXa-C6FeQ9AbNSGXxY7W7xm4. It contains the same data as the torrent, only .xz compressed.

Usage

Generate the index

See update-index.sh.

Spider the DHT

Run go build in spider/ to compile and scp the binary it to the server. You can use the systemd service file in spider/spider.service to start the spider on server boot.

Scraping trackers for seed/leech data

Run go build in seedleech-daemon/ to compile and scp the binary it to the server. You can use the systemd service file in seedleech-daemon/seedleech.service.

Contributing

Before working on something, open an issue to ask if it would be okay. I would love to KISS.