Skip to main content

Package to download from ncore.cc

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.cc 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'])

    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.3.0.linux-x86_64.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

ncoreparser-1.3.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ncoreparser-1.3.0.linux-x86_64.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for ncoreparser-1.3.0.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 9d429949db17ede6977796ae73f6d7833a6b8f835ca9c7c21f4132340227957e
MD5 c1059e33b37e1e6c430521617cf37a15
BLAKE2b-256 a385f8bfe0b0c75699f91c7b6ce653c3d8aff56887a3761484a511bc9a63779f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ncoreparser-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for ncoreparser-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e290768e4d3c5f46b11720e6fbb031e002f33f3328fcf1a93c91cc036a7cc77f
MD5 8a94a9418ca7fccf0f10d2fa07991dc4
BLAKE2b-256 15a614674523762bc243790f6924ab5f6b809d187e6f07fc199bd0f26a9c80f4

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