Skip to main content

Tracker Scraper

Downloads Downloads Downloads

A simple torrent tracker scraper

NOTE: scrape for http trackers work after version >= 1.1 of this package

Installation

pip install tracker-scraper

Usage

from tracker_scraper import scrape

results = scrape(
  tracker='udp://exodus.desync.com:6969',
  hashes=[
    "2d88e693eda7edf3c1fd0c48e8b99b8fd5a820b2",
    "8929b29b83736ae650ee8152789559355275bd5c"
  ]
)

print(results)

scrape Returns the list of seeds, peers and downloads a torrent info_hash has, according to the specified tracker

Args:

  • tracker (str): The announce url for a tracker, usually taken directly from the torrent metadata.
  • hashes (list): A list of torrent info_hash's to query the tracker for

Returns:
A dict of dicts. The key is the torrent info_hash's from the 'hashes' parameter, and the value is a dict containing "seeds", "peers" and "complete".

Example:

{
  "2d88e693eda7edf3c1fd0c48e8b99b8fd5a820b2": {
    "seeds": "34",
    "peers": "189",
    "complete": "10"
  },
  "8929b29b83736ae650ee8152789559355275bd5c": {
    "seeds": "12",
    "peers": "0",
    "complete": "290"
  }
}

Credits

Code taken from project m2t by Erin Drummond (erindru). Originally written in Python 2.7, updated code to Python 3+ and now using requests

Metadata

Release files for tracker-scraper 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tracker-scraper 1.1.1
File Size Uploaded Provenance
tracker-scraper-1.1.1.tar.gz 4.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tracker-scraper 1.1.1
File Interpreter ABI Platform
tracker_scraper-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / tracker-scraper-1.1.1.tar.gz

Download URL tracker-scraper-1.1.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d4eafa2069053031d2bb8d8822ad018a9d42e075b57fe429ad17119a43f7297e
BLAKE2b-256 checksum
How to use checksums
e45078e07a350e8b7d9a0754f2555028be43488d4ea140a8223807eed5835b61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.7

Release files / tracker_scraper-1.1.1-py3-none-any.whl

Download URL tracker_scraper-1.1.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b7796d74fb580c115afd19f037ac4c210ffdda38893c9680876c4a6245569f1
BLAKE2b-256 checksum
How to use checksums
34a7a13a1e417f0eeadc281ad965d628df489c6f4749c1b3ad086bfe043a2a84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.7

Security for tracker-scraper 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page