Socket
Book a DemoInstallSign in
Socket

magnet-scraper

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magnet-scraper

Search torrents in The Pirate Bay and LimeTorrents

0.0.5
latest
Source
npmnpm
Version published
Weekly downloads
4
-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

magnet-scraper

:ocean: 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" }]
  });

Keywords

api

FAQs

Package last updated on 04 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.