petrus

1.3.0 • Public • Published

Petrus

A JavaScript library that can simply search and grab magnet link from The Pirate Bay ⚓️ (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])

  • query <string> Query to search
  • category <string> Optional, precise the category to search. Default is all categories. [Music, Movies, TV shows, HD - Movies, HD - TV shows]

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

Readme

Keywords

none

Package Sidebar

Install

npm i petrus

Weekly Downloads

0

Version

1.3.0

License

MIT

Unpacked Size

7.41 kB

Total Files

11

Last publish

Collaborators

  • wifsimster