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.
Metadata
Release files for pyratebay 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyratebay-0.2.1.tar.gz | 15.2 kB | Without provenance | Details for pyratebay-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyratebay-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for pyratebay-0.2.1-py3-none-any.whl |
Total release size: 29.8 kB
Release files / pyratebay-0.2.1.tar.gz
| Download URL | pyratebay-0.2.1.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23c34d9982c2e12ae3a952014047afac57f4d2757c73c0acd8abe4efec033f5f
|
|
BLAKE2b-256 checksum How to use checksums |
e13f193f93506254dc7aee7752b09ce7129d7cd7abb4c5659643b89181a1e458
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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}
|
Release files / pyratebay-0.2.1-py3-none-any.whl
| Download URL | pyratebay-0.2.1-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f65231a9fdc89ca21bbe158547463e19ab99e5a99d89258a174d7d7b40c5417e
|
|
BLAKE2b-256 checksum How to use checksums |
b52a03cbd02309e267b8bf2c767de0c7dca474822689df3088b03805c1910fee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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}
|
Security for pyratebay 0.2.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.