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
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


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.1.tar.gz (9.4 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.1-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: torrent_tracker_search-0.2.1.tar.gz
  • Upload date:
  • Size: 9.4 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.1.tar.gz
Algorithm Hash digest
SHA256 86583693668db27608920719bc746a9bb0dcbea4f15bad160bf8d70a619ffd1d
MD5 96cbaf64291053810e3c17abf32dbc97
BLAKE2b-256 4ef82c750578c478bc852e637299857a49810588bfb4d41e2e1a43f86b4cd6a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torrent_tracker_search-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c08afc5c918e6b3ea6b8cfdaf2b92a44cc23945975eee8256d54920d10ebe55
MD5 4dd371443ed28839f0f729366a5c373a
BLAKE2b-256 a1e10b763f90fa4e2fca99c4992e249e2f1e5b5b93d0bc9717fa633b1b6c1967

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