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 PyPI

pip install pyratebay

For Developers

git clone https://github.com/evilcult/pyratebay
cd pyratebay
pip install . 
# or 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.2.0.tar.gz (14.7 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.2.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyratebay-0.2.0.tar.gz
  • Upload date:
  • Size: 14.7 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.2.0.tar.gz
Algorithm Hash digest
SHA256 12c0cfa39e8ede9e415d61e64cb09f43680614e8906e911a4a7610cf63a0ee30
MD5 0c9c8b03f8745d47b5a2af542164f234
BLAKE2b-256 b583c3a1e2b13f87f222c3f13123dca5f1508f2c38bc7cd25e02474069253a8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyratebay-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52e88f78756a120d9d4a092e2e4290d57106d8afa1707cdab5c8803782edd9ad
MD5 621411b2b94ad3fcf529eef5b540d000
BLAKE2b-256 7799845657e1021213096fba7d1c4d58ea72fa111917442dbf667c0a6c513d9a

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