Metadata-Version: 2.1
Name: the-python-bay
Version: 1.1.2
Summary: A simple package for searching thepiratebay.org
Home-page: https://github.com/philhabell/the-python-bay
Author: Phil Bell
Author-email: philhabell@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown

[![](https://img.shields.io/pypi/v/the-python-bay.svg)](https://pypi.org/project/the-python-bay)
[![](https://img.shields.io/pypi/pyversions/the-python-bay.svg)](https://pypi.org/project/the-python-bay)


# the-python-bay

Python library for searching thepiratebay.org

## Install

    pip install the-python-bay

## Usage

```
from the_python_bay import tpb

results = tpb.search("ubuntu")
```

This will return the a list of instances of the `Torrent` class.

So you can then access the data like so:
```
for torrent in results:
    print(f"{torrent.name} - {torrent.magnet}")
```

