ti
torrent-indexer
npm i torrent-indexer
ti

torrent-indexer

Yet another node.js torrent scraper made especially for movie, series, anime and music (scrape from 1337x, eztv, limetorrents, rarbg, skytorrents, thepiratebay, torrentproject, yts and zooqle)

by Sayem Chowdhury

1.2.1 (see all)License:MITTypeScript:Not Found
npm i torrent-indexer
Readme

torrent-indexer Build Status npm downloads per month npm version

Finds the best torrents (Movies, Series, Anime, Music and Other stuff) across multiple sources.

Installation

$ yarn add torrent-indexer

Usage

Here's a simple example to search for torrents.

const TorrentIndexer = require("torrent-indexer");
const torrentIndexer = new TorrentIndexer();

const torrents = await torrentIndexer.search("rick and morty s04e04");

console.log(results);

/*
[
  {
    fileName: 'Rick.and.Morty.S04E01.1080p.WEBRip.x264-TBS[TGx]',
    seeders: 7900,
    leechers: 3198,
    uploaded: "Nov. 11th '19",
    size: '736.0 MB',
    site: 'https://...',
    resolution: '1080p',
    source: 'webrip',
    codec: 'x264',
    group: 'TBS[TGx]',
    season: 4,
    episode: 1,
    score: 24.281,
    title: 'Rick and Morty',
    sourceName: '1337x'
  },
  {
    fileName: 'Rick and Morty S04E01 720p HDTV x264-W4F [eztv]',
    seeders: 170,
    leechers: 0,
    uploaded: '4 mo',
    size: '500.68 MB',
    link: 'magnet:?xt=urn:btih:...',
    resolution: '720p',
    source: 'hdtv',
    codec: 'x264',
    season: 4,
    episode: 1,
    score: 23.357,
    title: 'Rick and Morty',
    sourceName: 'Eztv'
  },
  ...
]
*/

Search method returns array of objects:

PropertyTypeOptionalDescription
fileNamestringNotorrent name found in the scraped sites, might be stripped for some sites
seedersnumberNototal amount of seeders
leechersnumberNototal leechers (0 for eztv)
uploadedstringNoupload dates, non standard date format
linkstringYes/Nocontains either downloadable torrent url or magnet address
sitestringYes/Noif magnet or direct link of .torrent cannot be extracted this property will contain specific page address to extract using .torrent(site) method
  • One of link or site will be available. Site value contains webpage address to retrive torrent magnet or hash using .torrent(.site) method while link contains either direct downloadable torrent link or magnet.

  • There are also optional additional specific property available for specially for media contents.

PropertyTypeExample
resolutionstring1080p
sourcestringbluray
codecstringx264
groupstringRARBG
seasonnumber4
episodenumber1
titlestringRick and Morty
sourceNamestring1337x

Methods

.search(query, type, page);

ParametersRequiredTypeAccepted Values
queryYesstringanything, your search query
typeNostringmovie, series, music or anime
pageNonumber>= 1

.torrent(url)

ParametersRequiredDescription
urlYesUsing this method you can retrieve magnet or torrent hash from .site property

Example:

await torrentIndexer.torrent(torrents.site);

Donations

If you want to show your appreciation, you can donate me on ko-fi or buy me a coffee. Thanks!

Made with ❤️ & ☕ by Sayem

Downloads/wk

15

GitHub Stars

46

LAST COMMIT

2yrs ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

2

OPEN PRs

10
VersionTagPublished
1.2.1
latest
2yrs ago
No alternatives found
No tutorials found
Add a tutorial