Skip to main content

A simple command line tool for the pirate bay.

Project description

pyratebay

Python tools for The Pirate Bay. A simple command line interface and Python API.

Installation

From Source

git clone https://github.com/evilcult/pyratebay
cd pyratebay
pip install .

For Development

pip install -e .

CLI Usage

After installation, the pyratebay command will be available.

Search Torrents

Search for torrents by keyword.

pyratebay search "ubuntu"

View Torrent Info

Get detailed attributes for a specific torrent ID.

pyratebay info 12345

Browse Hot Torrents

List top 100 recent torrents.

# Default (Movies)
pyratebay hot

# Filter by category (e.g. games, music, applications, etc.)
pyratebay hot -t games

# Limit to last 48h
pyratebay hot -l true

Python Library Usage

You can also use pyratebay as a library in your Python projects.

import pyratebay

# 1. Search
# Returns a list of Media objects
results = pyratebay.search("ubuntu")
for media in results:
    print(f"{media.title} - {media.info_hash}")

# 2. Get Info
# Returns a single Media object with details
media_details = pyratebay.info("12345")
print(media_details.desc)

# 3. Get Hot/Top 100
hot_list = pyratebay.hot(media_type="games", limit=True) # limit=True for recent 48h

Disclaimer

This tool is for educational purposes only. The author is not responsible for any misuse of this tool. Please ensure you comply with your local laws and regulations regarding torrenting and copyright.

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

pyratebay-0.1.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

pyratebay-0.1.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyratebay-0.1.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pyratebay-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2f7e3239cbf457c6b33ac43bed4d2dd297d2ab56fd918e5aa94a71eb5ed79bd2
MD5 cd647a41869525ac8976d904abe88cbb
BLAKE2b-256 ee6740b7e019676c830dbb08170a491d5a3621cb50989b74ff56916ffebfb759

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyratebay-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pyratebay-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d95d36ad11b04adcb06eacc8b934252d7f0fd9a77a35725069f40e9a776860bc
MD5 34707685d4ae1067d94dcc4c9e423113
BLAKE2b-256 2ed75ccb78c12def1264a66755597ceed25a2203343f3eb4a27ddc370eb5ecc4

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