piratescraper
v1.1.3
Published
A JavaScript library that can simply grab magnet link from The Pirate Bay.
Downloads
5
Readme
Petrus
A JavaScript library that can simply search and grab magnet link from The Pirate Bay :anchor:.
Install
$ npm install petrus
Usage
const Petrus = require("petrus")
Petrus.search("Final Space S01E01")
.then(results => {
console.log(results)
})
.catch(err => {
console.error(err)
})
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 }]