python-nnmclub
Python library to search torrents on popular russian torrent tracker.
Installation
Via pip:
pip install python-nnmclub
Usage
import pynnmclub
nnmclub = pynnmclub.NNMClub()
results = nnmclub.search("Iron Man")
Return an iterable with dicts of all torrents found.
Torrent dict is:
{
'topic',
'detail_url',
'download_url',
'size', # in bytes
'seeders',
'leechers',
'added', # type: datetime.datetime
'views',
'messages',
'rating_number', # how many people rated this,
'rating', # rating. float from 0 to 5
'thanks', # how many people thanked this torrent
}
NOTE: With unathorized client you will be able to fetch only first 50 results of search.
Create an authorized client:
nnmclub = pynnmclub.NNMClub(username, password)
Or using previously created nnmclub client:
nnmclub.login(username, password)
If username or password are invalid, whis will raise an pynnmclub.InvalidCredentials error (which is child to pynnmclub.NNMClubError)
There is also a logger pynnmclub enabled that logs exceptions and warnings of parsing errors. It also includes a full HTML of errored context as a DEBUG message.
History
1.0.0 (2016-05-13)
Fixed setup.py requires option (changed to install_requires)
Version bump
0.1.0 (2016-04-11)
Initial PyPI release
Metadata
Release files for python-nnmclub 1.0
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 |
|---|---|---|---|---|
| python-nnmclub-1.0.zip | 5.7 kB | Without provenance | Details for python-nnmclub-1.0.zip |
Release files / python-nnmclub-1.0.zip
| Download URL | python-nnmclub-1.0.zip |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40c30db82d61d23b3535a595216eb8a8af7f031b2638e0f0277c5a5f5e92b324
|
|
BLAKE2b-256 checksum How to use checksums |
a42c9fd1adde752aa6bab289e3445d9447be8ab4472f92aa2a9e023422a8122d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-nnmclub 1.0
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.