Skip to content
/ Ncore Public

https://nCore.pro is the largest hungarian torrent site. This .NET Core 2.1 library helps to access its content (Torrent details, user Hit'n'Runs, Search for Torrent).

License

Notifications You must be signed in to change notification settings

PoLaKoSz/Ncore

Repository files navigation

PoLaKoSz.Ncore

https://ncore.pro is the largest hungarian torrent side. This .NET Core 2.1 library helps to access its content (Torrent details, user Hit'n'Runs, Search for Torrent).

Install

via NuGet

$ dotnet add package PoLaKoSz.NCore

Quick start

using PoLaKoSz.Ncore;
using PoLaKoSz.Ncore.Models;
using System;
using System.Collections.Generic;

namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            NcoreClient nCore = new NcoreClient();

            // parameter values should be extracted from the cookies after logged in from a
            // browser:
            //  constructor parameter     cookie name
            //       nickName                 nick
            //       password                 pass
            //     phpSessionID            PHPSESSID
            nCore.Login.AuthenticateWith(new UserConfig(...))
                .GetAwaiter().GetResult();

            ISearchResultContainer resultContainer = nCore.Search.List()
                .GetAwaiter().GetResult();

            ISearchResultContainer matrixResultContainer = nCore.Search.For("The Matrix")
                .GetAwaiter().GetResult();

            IEnumerable<DownloadedTorrent> hitAndRuns = nCore.HitAndRuns.List()
                .GetAwaiter().GetResult();

            Torrent firstTorrent = nCore.Torrent.Get(2)
                .GetAwaiter().GetResult();

            Console.Read();
        }
    }
}

About

https://nCore.pro is the largest hungarian torrent site. This .NET Core 2.1 library helps to access its content (Torrent details, user Hit'n'Runs, Search for Torrent).

Topics

Resources

License

Stars

Watchers

Forks

Languages