A python library for searching thepiratebay.org
Project description
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 namemagent
the torrents magnet linkseeders
number of seeders the torrent hasusername
the username of the torrents uploaderstatus
the users prominence status
Project details
Release history Release notifications | RSS feed
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.6.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for the_python_bay-1.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a996bf68aa41be80f34274314cfd4ad85ab7ce91c401fbac59b12a1f7b623119 |
|
MD5 | ceb889f9a39f0bf69ae1a45445705b8c |
|
BLAKE2b-256 | f2a8c36570e9e4dc96914c5e4bd9b590d7afa3aa686f26a4e18bbe147b3692c8 |