Skip to main content

Package to download from ncore.pro

Project description

https://github.com/radaron/ncoreparser-python/workflows/Python%20application/badge.svg

Ncoreparser

Introduction

This module provides python API-s to manage torrents from ncore.pro eg.: search, download, rssfeed, etc..

Install

pip install ncoreparser

Examples

Search torrent Get most seeded torrents from all category

from ncoreparser import Client, SearchParamWhere, SearchParamType, ParamSort, ParamSeq


if __name__ == "__main__":
    client = Client()
    client.open("<username>", "<password>")

    for t_type in SearchParamType:
        torrent = client.search(pattern="", type=t_type, number=1,
                                sort_by=ParamSort.SEEDERS, sort_order=ParamSeq.DECREASING)[0]
        print(torrent['title'], torrent['type'], torrent['size'], torrent['id'])

    client.close()

Download torrent This example download Forest gump torrent file and save it to temp folder

from ncoreparser import Client, SearchParamWhere, SearchParamType, ParamSort, ParamSeq


if __name__ == "__main__":
    client = Client()
    client.open("<username>", "<password>")


    torrent = client.search(pattern="Forrest gump", type=SearchParamType.SD_HUN, number=1,
                            sort_by=ParamSort.SEEDERS, sort_order=ParamSeq.DECREASING)[0]

    client.download(torrent, "/tmp")
    client.close()

Download torrent by rssfeed This example get all torrents and their informations from an ncore bookmark (rss feed)

from ncoreparser import Client


if __name__ == "__main__":
    client = Client()
    client.open("<username>", "<password>")

    torrents = client.get_by_rss("<rss url>")
    for torrent in torrents:
        print(torrent['title'], torrent['type'], torrent['size'], torrent['id'])

    client.close()

Get torrents by activity This example get all torrents and their informations from the Hit&run page

from ncoreparser import Client

if __name__ == "__main__":
    client = Client()
    client.open("<username>", "<password>")

    torrents = client.get_by_activity()
    for torrent in torrents:
        print(torrent['title'], torrent['type'], torrent['size'], torrent['id'], torrent['rate'], torrent['remaining'])

    client.close()

Get recommended torrents This example get all torrents and their informations from the recommended page

from ncoreparser import Client, SearchParamType

if __name__ == "__main__":
    client = Client()
    client.open("<username>", "<password>")

    torrents = client.get_recommended(type=SearchParamType.SD_HUN)
    for torrent in torrents:
        print(torrent['title'], torrent['type'], torrent['size'], torrent['id'])

    client.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ncoreparser-1.7.1.linux-x86_64.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

ncoreparser-1.7.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file ncoreparser-1.7.1.linux-x86_64.tar.gz.

File metadata

  • Download URL: ncoreparser-1.7.1.linux-x86_64.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ncoreparser-1.7.1.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 cbf32875c2476f72e4b03e2378f3b93ff296b764c2a6baa84dbf17c34e453ddd
MD5 5819884345a4a7077f231ce91f942fe1
BLAKE2b-256 ff3d2bee7c29873b0da5b6d730c3590e67056e6bff0673454fb1099383f556cd

See more details on using hashes here.

File details

Details for the file ncoreparser-1.7.1-py3-none-any.whl.

File metadata

  • Download URL: ncoreparser-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ncoreparser-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1183b90ff8518b8e25220167578298a8a81d8bbd86cfe722358799cefd8055f
MD5 5b5a013eef284ecc15a1ed345d435c6d
BLAKE2b-256 580dc822fdbb8e0e916c3a0362c9832a941ba3ed9efeaf1a4b938a448bb0cc4e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page