🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

node-ncore-parser

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

node-ncore-parser

A parser, wrapper for using ncore.pro from server side

0.0.2
unpublished
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

node-ncore-parser

Introduction

!! Currenty in beta mode !!

This module provides Node.js functions to list and download torrents from ncore.pro

Usage

const { login, getTorrents, downloadTorrent } = require('node-ncore-parser');

// Get "sessionId", which is required to further communications.
const sessionId = await login({ username: 'username', password: 'password' });

// Lists newest 25 torrents without filtering and get "key" to download torrents.
await getTorrents(sessionId);

// Lists filtered torrents (maximum 25)
const { key, torrents } = await getTorrents(sessionId, {
    sortBy: 'seeders', //sorts by seeders
    order: 'DESC', //desc
    type: 'game_iso', //types are not checked yet, you should check how to use them at ncore.pro
    page: 1, //for pagination
    searchText: 'gta', //searches for gta
});

await downloadTorrent(sessionId, { key, torrentId: torrents[0].id }, '/home/me/downloads' );

FAQs

Package last updated on 09 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts