0.0.4-beta โ€ข Published 12 months ago

ncore-api-wrapper v0.0.4-beta

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

nCore API Wrapper

:warning: Warning This package is still in beta (v0)! Until the full release most things can and probably will change so, don't build full apps around it yet!

nCore API Wrapper is a library that makes it easy to communicate with nCore including searching, downloading torrents and much more.

Features

  • Beginner friendly ๐Ÿš€
  • Custom types ๐Ÿ”Ž
  • Downloading torrents ๐Ÿ“ฉ
  • Customizable useragent, cookies, etc... ๐Ÿค–
  • v1 and v2 API ๐ŸŒŽ
  • CommonJS and Module support ๐Ÿ“ฆ
  • And much more! ๐Ÿงช

Documentation ๐Ÿ“š

In progress...

Installation โŒจ๏ธ

npm

To install nCore API Wrapper, simply run the following command:

npm install ncore-api-wrapper

Usage โ“

This is a simple overview of how to set up this library with all the options. Docs coming soon...

const nCore = require("ncore-api-wrapper");
const client = new nCore.Client({
    cookies: new nCore.CookieManager().addCookiesFromString("Your Cookies"), //Log in with cookies
});

client.on("ready", async () => {
    const torrent = await client.getTorrent(1490740);
    console.log(torrent.title); //Le.fabuleux.destin.d.Amelie.Poulain.2001.1080p.BluRay.DD5.1.x264.HuN-LiLBOX
    const output = require("fs")
        .createWriteStream("Amelie csodรกlatos รฉlete.torrent")(await torrent.download())
        .pipe(output); //Download torrent
});

client.login(username, password); //Log in with username & password

Plans ๐Ÿ“

  • Torrent page parsing to JSON
  • Custom URL Query Manager
  • Custom Cookie Manager
  • Cookie Login
  • Communicating with /ajax.php
  • Ajax response parsing to JSON
  • Torrent downloading
  • v2 Search System
  • v1 Search System
  • User class instead of string usernames

Credits ๐Ÿ”Ž

0.0.4-beta

12 months ago

0.0.3-beta

12 months ago

0.0.2-beta

12 months ago

0.0.1-beta

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago