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.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
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
Built Distribution
Close
Hashes for ncoreparser-1.6.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08353fdcff64282924791a5d1e487ae5e40847f28e62defcad61a8c1c29f1046 |
|
MD5 | acb977901e3bc36198c23a1ec72346e0 |
|
BLAKE2b-256 | 6b29e75fd94504683742ac9eb1beb3bae75c645a64176e4edc64eb1abc4f33fa |
Close
Hashes for ncoreparser-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83ea3255067c80098f7a3c6a42b36e6a253d3f104dc7b17d0de22a8783c701c3 |
|
MD5 | d556c1776c974da7a33178d4f447cef0 |
|
BLAKE2b-256 | 552e0599d05a33a79e1acada579fc9d16b328c5705fdb2b5e18e5c013c768824 |