Torrent Tracker Search Lib
Project description
Torrent Tracker Search Lib
Integrations
- rutracker.org
- nnmclub.to
Example
from torrent_tracker_search.ClientBuilder import ClientBuilder
from torrent_tracker_search.source.rutracker.RuTrackerService import RuTrackerService
from torrent_tracker_search.source.rutracker.RuTrackerClient import RuTrackerClient
from torrent_tracker_search.source.nnmclub.NNMClubService import NNMClubService
from torrent_tracker_search.source.nnmclub.NNMClubClient import NNMClubClient
from torrent_tracker_search.TorrentTrackerSearch import TorrentTrackerSearch
builder = ClientBuilder()
rutracker_client, nnmclub_client = builder.build(clients=[RuTrackerClient(), NNMClubClient()])
rutracker_service = RuTrackerService(rutracker_client)
nnmclub_service = NNMClubService(rutracker_client)
rutracker_service.login_by_session(session_id="[YOUR_SESSION_ID]")
nnmclub_service.login(session_id="[YOUR_SESSION_ID]")
service = TorrentTrackerSearch(trackers=[nnmclub_service, rutracker_service])
async def main(query: str):
result = await service.search(query)
print(f"search results: {result}")
torrent = await service.torrent(result[0])
print(f"full torrent info: {torrent}")
await builder.session.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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file torrent_tracker_search-0.2.3.tar.gz.
File metadata
- Download URL: torrent_tracker_search-0.2.3.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.16 Linux/5.15.0-127-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f83f825d26f3fdc4172db68575bc8cde44a04ebca91f1c4bc67b49c1a71c90b5
|
|
| MD5 |
e005c8fe5afc60159e77e6bc518eae72
|
|
| BLAKE2b-256 |
6e564d15c398829168d2599caa1d710eeb8e0bf39b0d0c7cba518d30ecafd6e9
|
File details
Details for the file torrent_tracker_search-0.2.3-py3-none-any.whl.
File metadata
- Download URL: torrent_tracker_search-0.2.3-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.16 Linux/5.15.0-127-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7e1665c17100ae1c41440eb062622854e918c190fcdac72560f1ba3dc74f0c9
|
|
| MD5 |
3002df1f0d5092fb6f9b2f5c9af5a7cc
|
|
| BLAKE2b-256 |
a43503b2cb97c9d5104b4b775e0e2304ca3116aacdd7ad66b7752d2b28fc2c6e
|