You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Urban Guacamole 683aa0cb49 Update README 7 months ago
api Fix error handling in api 9 months ago
crawl-rss Fix inability to crawl TPB; TLDR TPB has idiotic devs 8 months ago
generate-top-torrents Add Top torrents view by seed count 3 years ago
import-magnetico-db Fix uppercase infohashes 2 years ago
index-generator Update index-generator deps 1 year ago
seedleech Rename seedleech-daemon to seedleech 9 months ago
spider Fork shiyanhui/dht 2 years ago
static Update README 7 months ago
website Update README 7 months ago
.gitignore Rename seedleech-daemon to seedleech 9 months ago
README.md Update README 7 months ago
go.mod Update dependencies 2 years ago
go.sum Update dependencies 2 years ago
server-setup.md Update documentation 9 months ago
snippets.sql Add import-magnetico-db 2 years ago
update-index.sh Update deploy scripts 3 years ago

README.md

About

What is this?

If you don't know what Torrent Paradise/nextgen 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.

Setup

Here's what the setup looks like rn:

  • VPS, Debian Bullseye, 8 GB RAM
    • user with username nextgen on the server
  • my laptop w/ Linux
    • Go toolchain installed
    • node & npm
    • Python 3 (required only for index-generator/fix-metajson.py)

Read the server-setup.md file for more precise info.

The programs create their own tables in the DB that they need. Database name is "nextgen". You need to create the materialized views (fresh and search). You can find some useful SQL code in snippets.sql.

Each of the daemons (api, crawl-rss, seedleech-daemon) is its own standalone Go package and resulting binary. You have to compile the binaries yourself. There are systemd .service files available for each of the daemons.

The torrent collection is a mashup of the (now no longer provided) TPB dumps, my own DHT spidering efforts, and magnetico community database dumps.

The easiest way to get your own site up and running is to start with my .csv dump. It should be easy to import into any kind of system. It contains seed/leech counts too (!). If I were to import it, I'd modify import-magnetico-db.

Torrent Paradise csv dump: MEGA BayFiles IPFS

old dump (2020): MEGA

Torrent Paradise pg_dump (database): MEGA BayFiles

Usage

Generate the index

See update-index.sh.

Generation of the IPFS index will prob take a long time, a machine with high single-core perf recommended (ipfsearch runs on node.js)

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.

Import a recent magnetico community dump

Use sqlite3 on a the decompressed dump to generate a .csv file. Format: infohash,name,length(bytes). Optionally quoted.

Then use the go binary in import-magnetico-db to do the import.

IPFS vs 'static'

The directory website gets deployed to IPFS, static gets deployed to the server. Static calls the API, the IPFS version doesn't.

Contributing

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