Skip to content

infothrill/python-bitsnoop

Repository files navigation

bitsnoop - Unofficial Python API for BitSnoop

https://travis-ci.org/infothrill/python-bitsnoop.png https://coveralls.io/repos/infothrill/python-bitsnoop/badge.png Requirements Status

Currently implemented:

A001 — FakeSkan status of torrent
module bitsnoop.fakeskan

Usage

from bitsnoop import fakeskan

fk = fakeskan.Fakeskan()  # create a fakeskan object with default URL

if fk("43DBF6EBC059CD97ACAE7CAF308A0E050A7EC51A") == fakeskan.VERIFIED:
        print("This torrent is verified!")

Since bitsnoop.com implements some form of rate limiting on queries, we provide a minimal caching interface:

dictcache = {}

fk = fakeskan.Fakeskan(cache=dictcache, cache_expiry=120)

if fk("43DBF6EBC059CD97ACAE7CAF308A0E050A7EC51A") == fakeskan.VERIFIED:
        print("This torrent is verified!")

The cache object is treated like a dictionary and can thus also be an object that implements persistency (like shelve).

Installation

$ python setup.py install
NOT AVAILABLE yet!
$ pip install bitsnoop

Contribute

If you want to add any new features, or improve existing ones, feel free to send a pull request!

About

Unofficial Python API for BitSnoop. Incomplete.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages