Petrus
A JavaScript library that can simply search and grab magnet link from The Pirate Bay ⚓️ (or TPB clones).
Install
$ npm install petrus
Usage
{ let petrus = let data = await petrus ifdata console }
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 }]