Skip to main content API

Project description

This project is a simple wrapper around the AJAX API. Also compatible with what-like trackers such as pth/apollo.

Available via PyPI via pip:

# pip install whatapi

Example usage:

>>> import whatapi
>>> apihandle = whatapi.WhatAPI(username='me', password='secret')
>>> apihandle.request("browse", searchstr="Talulah Gosh")
>>> apihandle.get_torrent(1234567)

To use another tracker:

>>> import whatapi
>>> apihandle = whatapi.WhatAPI(username='me', password='secret',
>>> apihandle.request("browse", searchstr="The Beatles")

It’s strongly recommended that your script implements saving/loading session cookies to prevent overloading the server.


>>> import whatapi
>>> import cPickle as pickle
>>> cookies = pickle.load(open('cookies.dat', 'rb'))
>>> apihandle = whatapi.WhatAPI(username='me', password='me', cookies=cookies)
>>> pickle.dump(apihandle.session.cookies, open('cookies.dat', 'wb'))

API available at Gwindow’s API page or via the JSON API page on What.

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
whatapi-0.2.0.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None Jan 7, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page