# magnet-scraper

> Search torrents in The Pirate Bay and LimeTorrents

Latest version **0.0.5** (published 2017-07-04) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install magnet-scraper
pnpm add magnet-scraper
yarn add magnet-scraper
bun add magnet-scraper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2017-07-04 |
| First published | 2017-06-29 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | DevConNL |
| Maintainers | dhoogland |
| Keywords | api, limetorrents, thepiratebay, piratebay, tpb, torrents |

## Links

- npm: https://www.npmjs.com/package/magnet-scraper
- Repository: https://github.com/DevConNL/magnetScraper
- Homepage: https://github.com/DevConNL/magnetScraper#readme
- Issues: https://github.com/DevConNL/magnetScraper/issues
- npm.io page: https://npm.io/package/magnet-scraper

## Dependencies (3)

- [cheerio](https://npm.io/package/cheerio.md) ^0.22.0
- [request](https://npm.io/package/request.md) ^2.75.0
- [requests](https://npm.io/package/requests.md) ^0.1.7

## Recent versions

- 0.0.5 (latest) — 2017-07-04
- 0.0.4 — 2017-07-04
- 0.0.3 — 2017-07-04
- 0.0.2 — 2017-06-29
- 0.0.1 — 2017-06-29

## README

# 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" }]
  });
```

---
_Source: https://npm.io/package/magnet-scraper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
