Skip to content

ndduc/Nyaapi-sukebei

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nyaapi 2.0

Build Status Codecov License

This is an api allowing one to:

  • gather torrents directly from nyaa.si and nyaa.pantsu.cat in about a second or less.
  • upload a torrent to any nyaa.
  • check a user's profile and torrents.
  • So many things you should check the wiki to understand better.

All the documentation there is to know about how to use Nyaapi is located in the wiki.

Any contribution is welcomed.

Install

npm install --save nyaapi

Use

Nyaapi is organised with si methods and pantsu methods. You can access either of them like so:

const {si, pantsu} = require('nyaapi')

console.log(si)
/**
 * [Si] methods:
 *   > list
 *   > search
 *   > searchAll
 *   > searchPage
 *   > searchByUser
 *   > searchAllByUser
 *   > searchByUserAndByPage
 *   > infoRequest
 *   > upload
 * 
 */
console.log(pantsu)
/**
 * [Pantsu] methods:
 *   > list
 *   > search
 *   > searchAll
 *   > infoRequest
 *   > upload
 *   > update
 *   > login
 *   > checkUser
 *   > checkHeader
 * 
 */

Configuration

For both si and pantsu you can update the base URL for the calls this way:

const { si, pantsu } = require('nyaapi')

si.config.updateBaseUrl('https://nyaa.whatever')
pantsu.config.updateBaseUrl('https://nyaa.whatever')

It is important to know that all the pantsu methods are fully based on the offcial api of nyaa.pantsu.cat.

For a complete documentation, please check out the wiki for a tour of all the methods and how to use them.

About

Non-official api to access Nyaa.si and Nyaa.pantsu.cat (search, upload,...)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%