Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

magnet-scraper

0.0.5 • Public • Published

magnet-scraper

🌊 Search torrents from The Pirate Bay and LimeTorrents

Usage

  var magnet = require('magnet-scraper');
  
  magnet.search("something", function(err, res){
    // Do Something
    // return: [{name: "something, seeds: 123, leechs: 33, magnet: "linkmagnet" }]
  });

Also, you can search in a TPB mirror and select categories and pages.

  var magnet = require('magnet-scraper');
  
  var opts = {
    url: "https://pirateproxy.red/",
    page: 2, // note: start in 0.
    cat: CATEGORY_CODE // Audio = 100, Video = 200, Apps = 300, Games = 400, Porn = 500
  }
  
  magnet.search("something", opts, function(err, res){
    // Do Something
    // return: [{name: "something", seeds: 123, leechs: 33, magnet: "linkmagnet" }]
  });

Install

npm i magnet-scraper

DownloadsWeekly Downloads

6

Version

0.0.5

License

GPL-3.0

Last publish

Collaborators

  • avatar