0.0.4-beta โข Published 12 months ago
ncore-api-wrapper v0.0.4-beta
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 โจ๏ธ
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 ๐
- UnderCtrl for CommandKit's README
- brandon93s for html-table-to-json
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