{"id":19351981,"url":"https://github.com/radaron/ncoreparser","last_synced_at":"2025-04-09T14:06:45.303Z","repository":{"id":43124188,"uuid":"239888067","full_name":"radaron/ncoreparser","owner":"radaron","description":"Python API for ncore.pro","archived":false,"fork":false,"pushed_at":"2024-12-23T15:39:48.000Z","size":162,"stargazers_count":34,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T08:48:25.923Z","etag":null,"topics":["ncore","python","torrent","torrent-downloader","torrents"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ncoreparser/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/radaron.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-11T23:43:43.000Z","updated_at":"2025-02-27T09:43:18.000Z","dependencies_parsed_at":"2023-11-08T10:47:28.599Z","dependency_job_id":"fae643e8-e561-4fa7-bbfa-e45d0c1a0deb","html_url":"https://github.com/radaron/ncoreparser","commit_stats":{"total_commits":167,"total_committers":5,"mean_commits":33.4,"dds":"0.46706586826347307","last_synced_commit":"b41e471a8bef75de351878cea27974fb71a38f6b"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radaron%2Fncoreparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radaron%2Fncoreparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radaron%2Fncoreparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radaron%2Fncoreparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radaron","download_url":"https://codeload.github.com/radaron/ncoreparser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054226,"owners_count":21039952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ncore","python","torrent","torrent-downloader","torrents"],"created_at":"2024-11-10T04:37:47.084Z","updated_at":"2025-04-09T14:06:45.265Z","avatar_url":"https://github.com/radaron.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Test](https://img.shields.io/github/actions/workflow/status/radaron/ncoreparser/module_test.yml?label=Test\u0026style=for-the-badge)\n[![pypi](https://img.shields.io/pypi/v/ncoreparser?style=for-the-badge)](https://pypi.org/project/ncoreparser/)\n[![downloads](https://img.shields.io/pypi/dm/ncoreparser?style=for-the-badge)](https://pypi.org/project/ncoreparser/)\n![license](https://img.shields.io/github/license/radaron/ncoreparser?style=for-the-badge)\n\n# Ncoreparser\n\n## Introduction\n\nThis module provides python API-s to manage torrents from ncore.pro eg.: search, download, rssfeed, etc..\n\n## Install\n\n``` bash\npip install ncoreparser\n```\n\n## Examples\n\n\n\n### Search torrent\nGet most seeded torrents from all category\n\n``` python\nfrom ncoreparser import Client, SearchParamWhere, SearchParamType, ParamSort, ParamSeq\n\n\nif __name__ == \"__main__\":\n    client = Client()\n    client.login(\"\u003cusername\u003e\", \"\u003cpassword\u003e\")\n\n    for t_type in SearchParamType:\n        torrent = client.search(pattern=\"\", type=t_type, number=1,\n                                sort_by=ParamSort.SEEDERS, sort_order=ParamSeq.DECREASING)[0]\n        print(torrent['title'], torrent['type'], torrent['size'], torrent['id'])\n\n    client.logout()\n```\n\n### Download torrent\nThis example download Forest gump torrent file and save it to temp folder\n\n``` python\nfrom ncoreparser import Client, SearchParamWhere, SearchParamType, ParamSort, ParamSeq\n\n\nif __name__ == \"__main__\":\n    client = Client()\n    client.login(\"\u003cusername\u003e\", \"\u003cpassword\u003e\")\n\n\n    torrent = client.search(pattern=\"Forrest gump\", type=SearchParamType.HD_HUN, number=1,\n                            sort_by=ParamSort.SEEDERS, sort_order=ParamSeq.DECREASING)[0]\n\n    client.download(torrent, \"/tmp\")\n    client.logout()\n```\n\n### Download torrent by rssfeed\nThis example get all torrents and their informations from an ncore bookmark (rss feed)\n\n``` python\nfrom ncoreparser import Client\n\n\nif __name__ == \"__main__\":\n    client = Client()\n    client.login(\"\u003cusername\u003e\", \"\u003cpassword\u003e\")\n\n    torrents = client.get_by_rss(\"\u003crss url\u003e\")\n    for torrent in torrents:\n        print(torrent['title'], torrent['type'], torrent['size'], torrent['id'])\n\n    client.logout()\n```\n\n### Get torrents by activity\nThis example get all torrents and their informations from the Hit\u0026run page\n\n``` python\nfrom ncoreparser import Client\n\n\nif __name__ == \"__main__\":\n    client = Client()\n    client.login(\"\u003cusername\u003e\", \"\u003cpassword\u003e\")\n\n    torrents = client.get_by_activity()\n    for torrent in torrents:\n        print(torrent['title'], torrent['type'], torrent['size'],\n              torrent['id'], torrent['rate'], torrent['remaining'])\n\n    client.logout()\n```\n\n### Get recommended torrents\nThis example get all torrents and their informations from the recommended page\n\n``` python\nfrom ncoreparser import Client, SearchParamType\n\n\nif __name__ == \"__main__\":\n    client = Client()\n    client.login(\"\u003cusername\u003e\", \"\u003cpassword\u003e\")\n\n    torrents = client.get_recommended(type=SearchParamType.HD_HUN)\n    for torrent in torrents:\n        print(torrent['title'], torrent['type'], torrent['size'], torrent['id'])\n\n    client.logout()\n```\n\n### Async support\nThe library also supports async calls. It works same as the sync version, but you have to use the AsyncClient class.\n\n``` python\nimport asyncio\nfrom ncoreparser import AsyncClient, SearchParamWhere, SearchParamType, ParamSort, ParamSeq\n\n\nasync def main():\n    client = AsyncClient()\n    await client.login(\"\u003cusername\u003e\", \"\u003cpassword\u003e\")\n\n    for t_type in SearchParamType:\n        torrent = await client.search(pattern=\"\", type=t_type, number=1,\n                                      sort_by=ParamSort.SEEDERS, sort_order=ParamSeq.DECREASING)[0]\n        print(torrent['title'], torrent['type'], torrent['size'], torrent['id'])\n\n    await client.logout()\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradaron%2Fncoreparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradaron%2Fncoreparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradaron%2Fncoreparser/lists"}