1.3.0 • Published 5 years ago

petrus v1.3.0

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

Petrus

A JavaScript library that can simply search and grab magnet link from The Pirate Bay :anchor: (or TPB clones).

License: MIT npm version Install size

Install

$ npm install petrus

Usage

import { Petrus } from 'petrus'

async function main() {
  let petrus = new Petrus()

  let data = await petrus
    .search('Final Space S01E01')
    .catch(err => { console.error(err) })

  if(data) {
    console.log(data)
  }
}

main()

Documentation

search(query, category)

Response is a list of object : [{ magnetLink, name, quality, seeder, size, uploaded }]

1.3.0

5 years ago

1.2.0

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago