Skip to main content

A Python package to fetch torrent metadata from multiple sources

Project description

torrfetch

torrfetch is a Python package that lets you search torrents across multiple public torrent indexers with deduplication and relevance sorting. Designed for developers building CLI tools or automation scripts around torrent discovery.

Features

  • Search multiple torrent providers in parallel
  • Automatic deduplication of results
  • Smart sorting by relevance and seeders
  • Fast and extensible provider interface

Providers

Currently supports:

  • The Pirate Bay
  • yts

Installation

pip install torrfetch

Usage

from torrfetch import search

results = search("oppenheimer 2023 1080p")

Sample data returned

The first 30 results are returned, sorted by a combination of relevance and seeders:

[
  {
    "title": "Interstellar (2014)",
    "magnet": "magnet:?xt=urn:btih:...",
    "size": "2.2 GB",
    "uploaded": "2020-10-01",
    "uploader": "YTS",
    "category": "Movies",
    "seeders": 2145,
    "leechers": 198,
    "source": "yts"
  },
  {
    "title": "Interstellar.2014.1080p.BluRay.x264",
    "magnet": "magnet:?xt=urn:btih:...",
    "size": "3.1 GB",
    "uploaded": "2019-07-12",
    "uploader": "1337xUploader",
    "category": "Movies",
    "seeders": 1200,
    "leechers": 230,
    "source": "1337x"
  },
  ...
]

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

torrfetch-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

torrfetch-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file torrfetch-0.1.0.tar.gz.

File metadata

  • Download URL: torrfetch-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for torrfetch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2df9d36e5657bac6f4bdcde9e025146edfab55768e5e17ca0ce0196d7ef5e5bb
MD5 2b018a273da9a3e8e3d7fd5422311454
BLAKE2b-256 00f5cafcf0b764f9d522e9efa03e770a042a04ca88a82b95eeaee98a90ad8a7b

See more details on using hashes here.

File details

Details for the file torrfetch-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: torrfetch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for torrfetch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c654a1b7dc9f7a59ee9f9408d0e542df2fcc1bd8cb61b211ae0f5b4749960119
MD5 17ad03be87d9ead7eea1f9ccdfacf5cf
BLAKE2b-256 ea79a39d6c659cbad87c29bcfcd46430c47154b03e0f48d46194fd0d4a108e91

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