petrus
v1.3.0
Published
A JavaScript library that can simply grab magnet link from The Pirate Bay (or TPB clones).
Downloads
13
Readme
Petrus
A JavaScript library that can simply search and grab magnet link from The Pirate Bay :anchor: (or TPB clones).
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 searchcategory
<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 }]