https://github.com/polakosz/ncore
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).
https://github.com/polakosz/ncore
api csharp ncore scraper torrent wrapper
Last synced: 10 months ago
JSON representation
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).
- Host: GitHub
- URL: https://github.com/polakosz/ncore
- Owner: PoLaKoSz
- License: mit
- Created: 2020-04-12T21:15:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-06T08:12:48.000Z (almost 2 years ago)
- Last Synced: 2025-08-29T05:28:12.345Z (10 months ago)
- Topics: api, csharp, ncore, scraper, torrent, wrapper
- Language: C#
- Homepage: https://nCore.pro
- Size: 102 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PoLaKoSz.Ncore
[https://ncore.pro](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](https://www.nuget.org/packages/PoLaKoSz.Ncore/)
``` sh
$ dotnet add package PoLaKoSz.NCore
```
## Quick start
``` c#
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 hitAndRuns = nCore.HitAndRuns.List()
.GetAwaiter().GetResult();
Torrent firstTorrent = nCore.Torrent.Get(2)
.GetAwaiter().GetResult();
Console.Read();
}
}
}
```