Package to download from ncore.pro
Project description
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.login("<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.logout()
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.login("<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.logout()
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.login("<username>", "<password>")
torrents = client.get_by_rss("<rss url>")
for torrent in torrents:
print(torrent['title'], torrent['type'], torrent['size'], torrent['id'])
client.logout()
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.login("<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.logout()
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.login("<username>", "<password>")
torrents = client.get_recommended(type=SearchParamType.SD_HUN)
for torrent in torrents:
print(torrent['title'], torrent['type'], torrent['size'], torrent['id'])
client.logout()
Project details
Release history Release notifications | RSS feed
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.8.1.tar.gz
(8.6 kB
view details)
Built Distribution
File details
Details for the file ncoreparser-1.8.1.tar.gz
.
File metadata
- Download URL: ncoreparser-1.8.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.6 Linux/5.15.0-48-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ceffd65b8f540475bac6869d97bd9b4c9cec7ba832984d3787113658fc5b4c4 |
|
MD5 | a01a3b4ff52818b0704f5529c6371e2f |
|
BLAKE2b-256 | b95cfe38ec8028c23fc66fd4f03d6c34ed3d450c21b7a26ba834e57e02b5c54b |
File details
Details for the file ncoreparser-1.8.1-py3-none-any.whl
.
File metadata
- Download URL: ncoreparser-1.8.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.6 Linux/5.15.0-48-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32dfc0471b7b0c6a0a8cb7b1bee5f810295e8da8ff22b77ec7cda3434e7e2445 |
|
MD5 | c8dba5b8e1e7635ab96d276bb26db906 |
|
BLAKE2b-256 | df09377af4e069135c0e9981abd89ec52e72c4b059c1f3ea7b1a02c7d79523d1 |