bitsnoop - Unofficial Python API for BitSnoop
Currently implemented:
- A001 — FakeSkan status of torrent
- module bitsnoop.fakeskan
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).
$ python setup.py install
NOT AVAILABLE yet!
$ pip install bitsnoop
If you want to add any new features, or improve existing ones, feel free to send a pull request!