Skip to main content

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

builder = ClientBuilder()
rutracker_client, nnmclub_client = builder.build(clients=[RuTrackerClient(), NNMClubClient()])
rutracker_service = RuTrackerService(rutracker_client)
nnmclub_service = NNMClubService(rutracker_client)


async def main(query: str):
    await rutracker_service.login(login="", password="")
    nnmclub_service.login(session_id="")
    result_from_rutracker = await rutracker_service.search(query)
    result_from_nnmclub = await nnmclub_service.search(query)
    print(f"{result_from_rutracker=}")
    print(f"{result_from_nnmclub=}")
    await builder.session.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

torrent_tracker_search-0.2.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torrent_tracker_search-0.2.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file torrent_tracker_search-0.2.0.tar.gz.

File metadata

  • Download URL: torrent_tracker_search-0.2.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.10.16 Linux/5.15.0-127-generic

File hashes

Hashes for torrent_tracker_search-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6a00e7c8323003bf2651a44d34d9d3051150d33bf41a4c5987327d27f9086f47
MD5 c4f4059d122991f81e7f58893285cc1d
BLAKE2b-256 15b4daa8b14101972bb7b0266e4b4fc68c664fb39e56cfd7e5d5cc995196256f

See more details on using hashes here.

File details

Details for the file torrent_tracker_search-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for torrent_tracker_search-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50598dc726c56dae73598a2dc6528279474930dba22bfa4d3025f0050b8f9bbe
MD5 fec02382641eb76de9f49649f3c96877
BLAKE2b-256 d48a98ff85d563789d6b1b1ba996c7d0d5d1c8548ddb40770c01614282440772

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page