Gazelle API
Project description
This project provides a simple way to access and use a Gazelle based tracker from Python. This is available for both python 2 and 3 for the time being.
It is based on [whatapi](https://github.com/isaaczafuta/whatapi) and [xanaxbetter](https://github.com/rguedes/xanaxbetter)
Installation
pip: `bash pip install gazelleapi `
source: `bash git clone https://github.com/itismadness/gazelleapi cd gazelleapi python setup.py install `
Example Usage
` >>> from gazelleapi import GazelleAPI >>> api = GazelleAPI(username='me', password='secret', hostname='tracker.me') >>> api.get_torrent(1234567) `
To avoid undue stress on the server, it is suggested that you utilize cookies to save/load session information across usages of the API using something like pickle: ` >>> from gazelleapi import GazelleAPI >>> import pickle >>> cookies = pickle.load(open('cookies.dat', 'rb')) >>> api = GazelleAPI(username='me', password='secret', hostname='tracker.me', cookies=cookies) ... >>> pickle.dump(api.session.cookies, open('cookies.dat', 'wb')) `
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
Built Distribution
Hashes for gazelleapi-0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a57cf3a83604a65119ea2bbe00eca551e7a2495b7af1341e6c3dc603da23fc4 |
|
MD5 | 984e2796e8457e3fbad104c9dfb80d44 |
|
BLAKE2b-256 | e152d4188008dc88bf2d7ca409ab38c58459aaefbddeb8ebd963a76fcf9854ac |