Skip to main content

A python library for searching thepiratebay.org

Project description

title title

the-python-bay

Python library for searching thepiratebay.org

Install

pip install the-python-bay

Basic 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}")

Full Docs

search

This can be used to search thepiratebay.org, it will return a list of instances of the Torrent class.

from the_python_bay import tpb
results = tpb.search("ubuntu")

top_movies

Can be used to return the current top 100 movies on thepiratebay.org

from the_python_bay import tpb
results = tpb.top_movies()

top_tv

Can be used to return the current top 100 tv on thepiratebay.org

from the_python_bay import tpb
results = tpb.top_tv()

Torrent

The Torrent class is the format the torrents are returned in, it has the following attributes:

  • name the torrents name
  • magent the torrents magnet link
  • seeders number of seeders the torrent has
  • username the username of the torrents uploader
  • status the users prominence status

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

the-python-bay-1.1.8.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

the_python_bay-1.1.8-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page